Fixed sorting in tree overlay.