Hierarchical sorting within siblings
Sorting reorders rows among their siblings only, so the parent-child structure is preserved. Multi-column sort and custom comparators apply at each level. Optional folder-first ordering keeps parent rows ahead of leaves.
Planned. This page shows the specification from issue #197. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A project tree with mixed parent and leaf siblings, unsorted.
Expected behavior
Siblings reorder at every level and no row changes parent. With groupsFirst on, nodes that have children precede leaves within each sibling set.
Planned API surface
sortModeltreeSortMode ('siblings')groupsFirstcomparatoronSortChangedAcceptance criteria
- No row moves to a different parent when sorting (pending)
- The sort applies recursively to all loaded levels (pending)
- groupsFirst is applied before the comparator (pending)
- Sorting preserves expansion state (pending)
- Lazy-loaded children are sorted when they arrive (pending)