Author Topic: I want a numeric-parsing filename sort please HELP  (Read 3652 times)

Offline cetra

  • Newcomer
  • *
  • Posts: 1
    • View Profile
I want a numeric-parsing filename sort please HELP
« on: September 03, 2007, 06:20:02 AM »
I want a numeric-parsing filename sort please HELP :)

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: I want a numeric-parsing filename sort please HELP
« Reply #1 on: September 03, 2007, 07:46:32 AM »
Cetra,

Yeah, PM currently only support alphanumeric sorting where file2 comes after file10.  A proper numeric sort is going to be quite complex as the numbers could be anywhere in the file.  I guess it could be restricted to the last part of the filename.  This would mean file2 and file10 would be sorted numerically, but file2a and file10 wouldn't, but I guess this isn't what you would want either...  Catering for all possibilities is near impossible though.

But how about a work-around where you rename all files to get their numbers 0-prefixed?  E.g., file2 becomes file02, etc.
(I'm sure with the super powerful renaming capabilities of PM this should be doable, otherwise it can always be done in a little script on the command-line).

Hope this helps.
Hayo Baan - Photography
Web: www.hayobaan.nl