Page 1 of 1
Sorting files with numeric names
Posted: Tue Dec 09, 2003 1:01 pm
by Aokromes
Hi, i have seen that if you have for example:
1.jpg
2.jpg
7.jpg
8.jpg
9.jpg
10.jpg
11.jpg
12.jpg
but when i try to see the files are sorted as:
1.jpg
10.jpg
11.jpg
12.jpg
7.jpg
8.jpg
9.jpg
There is any mode of force to see the files on the correct order without renaming the files?
Re: Sorting files with numeric names
Posted: Wed Dec 10, 2003 6:58 am
by helmut
Aokromes wrote:... Is there any mode of force to see the files on the correct order without renaming the files?
What you want/need in XnView is a way to
sort files numerically. This might make sense in some cases, but is not supported by XnView 1.66. I am not sure whether this is needed often. Perhaps readers can let us know, here.
What you could do is renaming the files to 001.jpg, 002.jpg, ..., rather than just 1.jpg, 2.jpg. By doing so sorting will work both in XnView, MS Explorer, and other applications.
Re: Sorting files with numeric names
Posted: Fri Dec 12, 2003 5:19 pm
by Christoph
helmut wrote:I am not sure whether this is needed often. Perhaps readers can let us know, here.
Numerical sorting would really be a useful feature, just think of filenames including a date in german format like 11-12-2003.bmp (naming as 2003-12-11 will solve the problem too...). I would be glad if this could be implemented in a future version of XnView.
Greetings
Christoph
Re: Sorting files with numeric names
Posted: Sat Dec 13, 2003 10:23 am
by helmut
Christoph wrote:... just think of filenames including a date in german format like 11-12-2003.bmp...
As long as the length of the name is constant (e.g. ..., 09.bmp, 10.bmp, 11.bmp, ...), numeric and alphabetical sorting will do exactly the same.
So it would not help in your case with filenames with German dates "14-12-2003.bmp", "31-03-2003.bmp".
Posted: Wed Jan 07, 2004 11:57 am
by angelman
numeric number sorting would be VERY useful. I use a lot of unpadded images ie. the format test.1.jpg, test.2.jpg especially when moving from one image to the next using the mouse wheel which is a very nice feature, the images usually come in out of order.
Maybe there could be an option to 'always sort numerically' if xnview detects a number of files labelled in the format described above it will always deal with them sorted numerically...
Posted: Thu Jan 08, 2004 4:32 am
by crazytb
I also think that numeric sort would be VERY cool. Sometimes, it is easier for us to leave files unpadded (for example, to use in some script). Other times, it is impossible to us to rename the images (read-only media, or some program needs those images with exactly those names). I vote for this feature!!!
