Sort sidebar tree.