Skip to content

Commit 0fb85ad

Browse files
committed
fix ordering
1 parent a29a012 commit 0fb85ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/html/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ impl ShortPath {
247247

248248
impl Ord for ShortPath {
249249
fn cmp(&self, other: &Self) -> Ordering {
250-
self
250+
other
251251
.is_main
252-
.cmp(&other.is_main)
252+
.cmp(&self.is_main)
253253
.then_with(|| self.display_name().cmp(&other.display_name()))
254254
}
255255
}

0 commit comments

Comments
 (0)