Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/atomicdotdev/atomic
/ sort_by_path
Method
sort_by_path
atomic-core/src/output/repo/tree.rs:741–743 ·
view source on GitHub ↗
Sort items by path.
(&mut self)
Source
from the content-addressed store, hash-verified
739
740
/// Sort items by path.
741
pub fn sort_by_path(&mut self) {
742
self.items.sort_by(|a, b| a.path.cmp(&b.path));
743
}
744
745
/// Sort items by depth (shallowest first).
746
pub fn sort_by_depth(&mut self) {
Callers
1
test_result_sort_by_path
Function · 0.80
Calls
1
cmp
Method · 0.45
Tested by
1
test_result_sort_by_path
Function · 0.64