Skip to content

Commit

Permalink
Sort naturally
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Jan 5, 2024
1 parent b9f0510 commit e3bc82f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env_logger = "0.10.0"
grep = "0.3.1"
ignore = "0.4.21"
lazy_static = "1.4.0"
lexical-sort = "0.3.1"
log = "0.4.20"
patch = "0.7.0"
notify = "6.1.1"
Expand Down
2 changes: 1 addition & 1 deletion src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl Ord for ProjectNode {
}
}
}
self.name().cmp(other.name())
lexical_sort::natural_lexical_cmp(self.name(), other.name())
}
}

Expand Down

0 comments on commit e3bc82f

Please sign in to comment.