The Gnome developers appear to be unwilling to fix this after nearly 8
years. I've attached an example of the issue where it is clear that the
sort order is wrong, even for proponents of natural sort ordering.

It can be fixed for Nautlius by changing
g_utf8_collate_key_for_filename() to g_utf8_collate_key()
nautilus-3.10.1/libnautilus-private/nautilus-file.c but this only
affects Nautilus windows. File dialogs still use the wrong sort order.

In glib, g_utf8_collate_key_for_filename() is broken for anything with
leading zeros (it sorts 2009.1 before 2009.05) so it doesn't even get
natural ordering correct.

The sort order of g_utf8_collate_key_for_filename() is too aggressive in
splitting up filenames into separately ordered components, which makes
it inconsistent with user expectations for highly structured filenames.

Some sort of desktop-wide "use natural sort order" setting is required
to allow the behaviour to be adjusted. An environment setting for glib
would do (although the change wouldn't be effective immediately).

** Attachment added: "Invalid sort order which orders "3" both before and after 
"4"."
   
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/322271/+attachment/4118397/+files/invalid_sort_order.png

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/322271

Title:
  Sorting by name doesn't work well with digits or special chars

To manage notifications about this bug go to:
https://bugs.launchpad.net/nautilus/+bug/322271/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to