mirror of
https://github.com/uutils/coreutils.git
synced 2026-05-06 07:26:38 -04:00
fix(ls): respect sorting when grouping directories
This commit is contained in:
committed by
Daniel Hofstetter
parent
3e3daaa347
commit
5a25c70c16
+1
-1
@@ -1512,7 +1512,7 @@ fn sort_entries(entries: &mut [PathData], config: &Config) {
|
||||
}
|
||||
|
||||
if config.group_directories_first && config.sort != Sort::None {
|
||||
entries.sort_unstable_by_key(|p| {
|
||||
entries.sort_by_key(|p| {
|
||||
let ft = {
|
||||
// We will always try to deref symlinks to group directories, so PathData.md
|
||||
// is not always useful.
|
||||
|
||||
Reference in New Issue
Block a user