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

Method sort_by_path

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

Sort items by path.

(&mut self)

Source from the content-addressed store, hash-verified

734
735 /// Sort items by path.
736 pub fn sort_by_path(&mut self) {
737 self.items.sort_by(|a, b| a.path.cmp(&b.path));
738 }
739
740 /// Sort items by depth (shallowest first).
741 pub fn sort_by_depth(&mut self) {

Callers 1

test_result_sort_by_pathFunction · 0.80

Calls 1

cmpMethod · 0.80

Tested by 1

test_result_sort_by_pathFunction · 0.64