Natural number sorting in DESCRIPT.ION field?

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
spikey
Member
Member
Posts: 123
Joined: 2005-07-20, 08:37 UTC

Natural number sorting in DESCRIPT.ION field?

Post by *spikey »

I sometimes receive a series of jpegs which have been wrongly numbered.

The series comes with a DESCRIPT.ION file that describes the file by using the correct sequence number, but there are no leading zeros.

I would like to sort the files using the DESCRIPT.ION entry but the sort needs to be done in natural number order. For example, where "5" comes before "10". Is this possible?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Natural number sorting in DESCRIPT.ION field?

Post by *ghisler(Author) »

Not directly. You would probably have to do it in two steps:
1. Rename the files with the[=tc.comment] field
2. Sort them in natural order (Configuration - Options - Display)
3. Rename them again using the counter field.
Author of Total Commander
https://www.ghisler.com
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Natural number sorting in DESCRIPT.ION field?

Post by *Stefan2 »

Or open the DESCRIPT.ION file in a text editor and add the leading zeros yourself.






 
Post Reply