Natural number sorting in DESCRIPT.ION field?

English support forum

Moderators: Stefan2, white, sheep, Hacker

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

Natural number sorting in DESCRIPT.ION field?

Post by *spikey » 2019-06-24, 12:58 UTC

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: 37417
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Natural number sorting in DESCRIPT.ION field?

Post by *ghisler(Author) » 2019-06-24, 13:46 UTC

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
http://www.ghisler.com

User avatar
Stefan2
Power Member
Power Member
Posts: 2511
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Natural number sorting in DESCRIPT.ION field?

Post by *Stefan2 » 2019-06-24, 13:57 UTC

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






 
Inofficial FAQs || WIKI (Deu/Eng) || TC Home (What's new? // FAQ // Download // Order // Addons // Tools // Plugins)
Erst wenn der letzte Baum gefällt oder die letzte Biene verendet ist, werden die Leute verstehen warum Umweltschutz wichtig ist.

Post Reply