MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / sort_by_depth

Method sort_by_depth

atomic-core/src/output/repo/tree.rs:746–748  ·  view source on GitHub ↗

Sort items by depth (shallowest first).

(&mut self)

Source from the content-addressed store, hash-verified

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// ============================================================================

Callers 1

Calls

no outgoing calls

Tested by 1