LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-18-2010, 09:41 AM   #1
Changes
Member
 
Registered: Oct 2008
Posts: 190

Rep: Reputation: 16
Making the file browser order numbered files properly


Say I have a folder with the following files:

001.jpg
002.jpg
003.jpg
004.jpg
005.jpg
3blah.jpg

The file browser in Debian has the annoying habit of not considering the zeroes, so the order in it, and in any image viewers, goes like so:


001.jpg
002.jpg
003.jpg
3blah.jpg
004.jpg
005.jpg

This can be quite annoying. Can I get it to stop doing that?

Thanks.
 
Old 11-19-2010, 07:04 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
The file browser may not be sorting the files alphabetically. It may be sorting them by modification time for example. Click on the column heading for file name. That should ensure that it is using file names as its sort key.
 
Old 11-19-2010, 08:24 PM   #3
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
Originally Posted by Changes View Post
The file browser in Debian has the annoying habit of not considering the zeroes... This can be quite annoying. Can I get it to stop doing that?
I guess some consider this a 'feature' (natural sorting) rather than a 'bug'. It would be nice if it was configurable.

There have been bug reports about this, but people confuse two different issues in the bug report discussions: first is the order of sorting of numerical values; and second is the alphanumeric collation order.

The gnome browser (nautilus) does respect the environment collation order (though I found I had to set LC_COLLATE in .gnomerc). This will affect for example whether alphabetic case follows ASCII order or is interleaved.

However, I could not find a way to change the numerical sorting (which as you point out, sorts according to decimal value rather than strict collation order). This included looking in the settings in gnome-conf, but could not see anything relevant.

Some have solved the problem by switching to a different file browser, such as xfe, but this seems like a heavy-handed solution to me.

Incidentally, Microsoft made the same change in Windows Explorer (WinXP and later). It is especially annoying when the numbers in the filenames are in hex.

Last edited by neonsignal; 11-19-2010 at 09:47 PM.
 
1 members found this post helpful.
Old 11-21-2010, 10:16 AM   #4
Changes
Member
 
Registered: Oct 2008
Posts: 190

Original Poster
Rep: Reputation: 16
Yeah, and I've found it annoying in Windows as well, but it bugs me a lot less because I use an exceedingly old image viewer (ACDSee version 3.1; that's nineties-era) whose own browser still sorts files the old-fashioned way. This is unfeasible under Linux though, or at least I haven't yet found a viewer that works like that.
 
Old 11-21-2010, 08:20 PM   #5
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
Originally Posted by Changes View Post
or at least I haven't yet found a viewer that works like that.
You could try the geeqie viewer (a fork from the unmaintained gqview), if you can live without all the bells and whistles.
 
  


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
[SOLVED] Command to swap even and odd numbered lines in a file Vilael Linux - Newbie 2 05-28-2010 12:02 PM
List 4 names from users list and output them to fbusers in numbered ascending order? fezzie Programming 4 02-10-2010 01:05 PM
library missing:No such file or directory error(all files and paths are set properly venky.kv Linux - Newbie 3 03-09-2009 10:49 AM
File browser failure - files corrupted!! cousinlucky SUSE / openSUSE 10 06-27-2007 05:55 PM
Download consecutively numbered files patrokov Programming 15 08-23-2006 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:56 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