Skip to content

Commit 25476c4

Browse files
committed
browser: Sort files in current directory
Signed-off-by: Howard Chu <[email protected]>
1 parent 64c45c8 commit 25476c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/browser.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ impl Browser {
461461
}
462462
})
463463
.collect::<Vec<String>>();
464+
465+
self.current_dir.sort_by(|d1, d2| d1.to_lowercase().cmp(&d2.to_lowercase()));
464466
}
465467

466468
/// Goto the directory in the left side window, while quitting trans

0 commit comments

Comments
 (0)