Can I sort files A-Z and at the same time Z-A?

Posted by The_Buff on Super User See other posts from Super User or by The_Buff
Published on 2011-01-06T21:38:01Z Indexed on 2011/01/06 21:55 UTC
Read the original article Hit count: 133

Filed under:
|
|
|

I am trying to sort and rename a large number of files that are labeled #####_##

The LEFT side of the underscore are numbers (e.g., 32956715, 32956810, etc.) that do not repeat.
The RIGHT side of the underscore are also numbers (e.g., 1, 2, 3, etc.) and they do repeat.

(The left side is the number of a scan and the right side is the page of that particular scan.)

I would like to be able to sort the left side of the underscore Z-A and the right side A-Z.

Example:

3_1
3_2
3_3
2_1
2_2
2_3
1_1
1_2
1_3

I am using ReNamer by den4b (easily the best free renamer out there). It supports regular expressions so I believe there should be an easy way to do this, but I don't know how. (I've been trying to learn regular expressions but I don't use them enough to retain anything.)

I'm open for any suggestions that achieve the same result. I've spent enough time trying to figure it out that I could have probably just sorted them myself already but this is a reccuring problem so hopefully someone has a solution that will save me lots of time in the long run.

Thank You!

© Super User or respective owner

Related posts about Windows

Related posts about regex