Sort items by depth (shallowest first).
(&mut self)
| 744 | |
| 745 | /// Sort items by depth (shallowest first). |
| 746 | pub fn sort_by_depth(&mut self) { |
| 747 | self.items.sort_by_key(|a| a.depth); |
| 748 | } |
| 749 | } |
| 750 | |
| 751 | // ============================================================================ |
no outgoing calls