Revert "Fixed sorting in tree overlay."

This reverts commit dd3bc254ce52a975f8f5ade60efe9aff6643ff54.