removed expand/collapse if depth is 0, invalidate data view on sort to
force redraw.