LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-12-2011, 08:21 AM   #1
gacl
Member
 
Registered: Feb 2004
Posts: 64

Rep: Reputation: 23
Changing The Sort Order In Nautilus


Hi,

How do you change the sort order in Nautilus? I want it to look like this:

004
02
030
1
10

but I get this:

1
02
004
10
030

Please see this thread: http://ubuntuforums.org/showthread.p...8#post10450418


Gus
 
Old 02-12-2011, 09:45 AM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Just click on the list header to sort according to that column.
 
Old 02-14-2011, 08:26 PM   #3
gacl
Member
 
Registered: Feb 2004
Posts: 64

Original Poster
Rep: Reputation: 23
That doesn't solve the problem. I don't see how clicking on the headers will fix the sort order.
 
Old 02-15-2011, 07:40 AM   #4
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Here:
Attached Thumbnails
Click image for larger version

Name:	screenshot2.png
Views:	38
Size:	8.4 KB
ID:	6162  
 
Old 02-15-2011, 03:29 PM   #5
gacl
Member
 
Registered: Feb 2004
Posts: 64

Original Poster
Rep: Reputation: 23
Thanks for your help but clicking on the headers is not helping. I need Nautilus to respect leading zeros and follow a strict numerical order.
 
Old 02-15-2011, 03:39 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by gacl View Post
Thanks for your help but clicking on the headers is not helping. I need Nautilus to respect leading zeros and follow a strict numerical order.
So you don't want to just sort alphabetically, but you want to redefine what "alphabetically" means?
 
Old 02-16-2011, 02:07 PM   #7
gacl
Member
 
Registered: Feb 2004
Posts: 64

Original Poster
Rep: Reputation: 23
It's not the alphabet part that is at fault, it's the numbers. Look at the examples I gave above.


Gus
 
Old 02-16-2011, 02:12 PM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by gacl View Post
It's not the alphabet part that is at fault, it's the numbers. Look at the examples I gave above.
That doesn't matter, it still the sorting order.

I'm not sure if this is possible to change without modifying Nautilus's source code. Or maybe there's an environment variable that can change this.

See if the output of the ls command is in the same order as in Nautilus.
 
Old 02-20-2011, 09:49 AM   #9
gacl
Member
 
Registered: Feb 2004
Posts: 64

Original Poster
Rep: Reputation: 23
"ls" sorts the test folder as:

user@user:~$ ls test
001 002347 030 10374638920 666593

Nautilus sorts as:

001 030 002347 666593 10374638920

I want Nautilus to sort like "ls".


Gus
 
Old 02-20-2011, 09:55 AM   #10
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
My guess is that you cannot change it without modifying and recompiling Nautilus's source code.
 
Old 02-21-2011, 02:56 PM   #11
gacl
Member
 
Registered: Feb 2004
Posts: 64

Original Poster
Rep: Reputation: 23
That's too bad. Thank you.


Gus
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get Nautilus to sort filenames in good ol' lexicographical order? Dan04 Linux - Software 1 03-14-2010 06:22 PM
System suddenly changing disk order from BIOS order hscast Fedora 2 02-16-2010 09:09 PM
Can I use GNU sort to sort one field in order, another in reverse? zombieite Linux - Newbie 4 04-27-2009 12:23 AM
How do I do filtering in Perl (keep sort order and sort again by another means)? RavenLX Programming 9 12-19-2008 10:12 AM
Sort order in nautilus Patrick K Ubuntu 4 06-12-2007 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration