[Bug 1748321] Re: Sort order is bizarre, and can not be changed
Amr Ibrahim
1748321 at bugs.launchpad.net
Fri Apr 20 11:11:49 UTC 2018
** Package changed: glib (Ubuntu) => glib2.0 (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/1748321
Title:
Sort order is bizarre, and can not be changed
Status in GLib:
Confirmed
Status in glib2.0 package in Ubuntu:
Triaged
Status in gnome-desktop3 package in Ubuntu:
Invalid
Bug description:
Create some test files as follows:
$ touch 000001000010-0.jpg 000001000010-A.jpg 000001A00010-0.jpg
000003BBF000-0.jpg 00003bA1A000-0.jpg 00003BD22000-0.jpg
0000A4AC3000-0.jpg 000100001 000100001.jpg 000200001
View them at the command line and in Nautilus:
$ ls -1
000001000010-0.jpg
000001000010-A.jpg
000001A00010-0.jpg
000003BBF000-0.jpg
00003bA1A000-0.jpg
00003BD22000-0.jpg
0000A4AC3000-0.jpg
000100001
000100001.jpg
000200001
$ nautilus .
ls sorts files as one might expect. It is not case sensitive (unless
you use a case sensitive locale, e.g. LANG=C), but sorts
alphabetically.
Nautilus sorts the files in a bizarre order, regardless of which locale is used. Weird behaviours include:
* Longer but otherwise equal filenames sort before shorter ones
* Sometimes ignores runs of zeros, but not punctuation
* Seems to detect runs of digits and sort them at the end
The actual behaviour is very complex and difficult to predict, though
it must follow some internal logic. The end result is that files don't
sort in any reasonable order. This also impacts some other
applications, such as Eye of Gnome. Others, like Transmission, respect
locale.
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: gnome-desktop3-data 3.26.2-0ubuntu0.1
ProcVersionSignature: Ubuntu 4.13.0-32.35-generic 4.13.13
Uname: Linux 4.13.0-32-generic x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: GNOME
Date: Fri Feb 9 10:39:25 2018
Dependencies:
InstallationDate: Installed on 2016-12-02 (432 days ago)
InstallationMedia: Ubuntu-GNOME 16.10 "Yakkety Yak" - Release amd64 (20161012.1)
PackageArchitecture: all
SourcePackage: gnome-desktop3
UpgradeStatus: Upgraded to artful on 2017-10-12 (119 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/glib/+bug/1748321/+subscriptions
More information about the foundations-bugs
mailing list