[Bug 2154042] Re: ls: files are not sorted in alphabetical order by default
Harm van Bakel
2154042 at bugs.launchpad.net
Sun May 24 13:57:58 UTC 2026
Yes you're right, I can only reproduce the sorting issue with --group-
directories-first. I thought I had seen the same issue without it but I
can't reproduce it anymore. I probably got confused by all the different
combinations I tried. I will update the bug title.
** Summary changed:
- ls: files are not sorted in alphabetical order by default
+ ls: files are not sorted in alphabetical order when using --group-directories-first
** Description changed:
Since upgrading from Noble 24.04 to Resolute 26.04, files and folders
- are not sorted in proper alphabetical order when running ls in Ptyxis.
- The sort order appears roughly alphabetical but with many exceptions,
- and there is no obvious pattern to explain the deviations. Casing does
- not appear to be a factor either.
+ are not sorted in proper alphabetical order when running ls --group-
+ directories-first in Ptyxis. The sort order appears roughly alphabetical
+ but with many exceptions, and there is no obvious pattern to explain the
+ deviations. Casing does not appear to be a factor either.
- I tried switching locales but all of the following give incorrect sort
- results:
+ I tried switching locales but the following give incorrect sort results:
- LC_ALL=C /usr/bin/ls -hlF
LC_ALL=C /usr/bin/ls -hlF --group-directories-first
-
- LC_ALL=en_US.UTF-8 /usr/bin/ls -hlF
LC_ALL=en_US.UTF-8 /usr/bin/ls -hlF --group-directories-first
Switching to gnuls restores proper alphabetical sorting.
---
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: rust-coreutils 0.8.0-0ubuntu3
ProcVersionSignature: Ubuntu 7.0.0-17.17-generic 7.0.2
Uname: Linux 7.0.0-17-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri May 22 14:10:52 2026
InstallationDate: Installed on 2020-07-06 (2146 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: rust-coreutils
UpgradeStatus: Upgraded to resolute on 2026-05-06 (16 days ago)
** Also affects: rust-coreutils via
https://github.com/uutils/coreutils/issues/11997
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2154042
Title:
ls: files are not sorted in alphabetical order when using --group-
directories-first
Status in rust-coreutils:
Unknown
Status in rust-coreutils package in Ubuntu:
New
Bug description:
Since upgrading from Noble 24.04 to Resolute 26.04, files and folders
are not sorted in proper alphabetical order when running ls --group-
directories-first in Ptyxis. The sort order appears roughly
alphabetical but with many exceptions, and there is no obvious pattern
to explain the deviations. Casing does not appear to be a factor
either.
I tried switching locales but the following give incorrect sort
results:
LC_ALL=C /usr/bin/ls -hlF --group-directories-first
LC_ALL=en_US.UTF-8 /usr/bin/ls -hlF --group-directories-first
Switching to gnuls restores proper alphabetical sorting.
---
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: rust-coreutils 0.8.0-0ubuntu3
ProcVersionSignature: Ubuntu 7.0.0-17.17-generic 7.0.2
Uname: Linux 7.0.0-17-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Fri May 22 14:10:52 2026
InstallationDate: Installed on 2020-07-06 (2146 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: rust-coreutils
UpgradeStatus: Upgraded to resolute on 2026-05-06 (16 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/rust-coreutils/+bug/2154042/+subscriptions
More information about the foundations-bugs
mailing list