Revert "fix(grouping): non-canonical ordering"

This reverts commit 02c44c92d0.
This commit is contained in:
steven-omaha
2023-10-10 16:31:29 +02:00
parent 0b71416ddb
commit bd96a9074a
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -94,7 +94,10 @@ fn is_child_of_any_dir(path: &Path, dirs: &[PathBuf]) -> bool {
impl PartialOrd for Group { impl PartialOrd for Group {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> { fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(self.cmp(other)) match self.name.partial_cmp(&other.name) {
Some(core::cmp::Ordering::Equal) => None,
ord => ord,
}
} }
} }
+1 -1
View File
@@ -67,7 +67,7 @@ impl Eq for Section {
impl PartialOrd for Section { impl PartialOrd for Section {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> { fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(self.cmp(other)) self.name.partial_cmp(&other.name)
} }
} }