1 (edited by Stefan 2007-06-03 11:27:46)

Topic: Advantage sorting

If you have the need to sort your files in Siren first
before you start modifying them, you could do this:

You can click on the header of each column to sort ascending (click twice to sort descending)
If this is not enough for you as an power user you could try to do this trick:



Step 1)
Use one of the Siren Features to rename an file .... but use this as preview only. (DO NOT CLICK to rename)
%sb                                                =  sort by size
%e                                                  = sort by extension
%b   first -> then Step 2 -> then %e  = sort by name first, then by extension
%dm                                               = sort by modification date
%dm{"%a"}                                    = sort by weekday name (Mo, Th...) of the modification date (needs Siren 2.0)
%dmt(1,2)                                       = sort by the hour of the last modification
%f(s/../,/g)                                      = sort by length of the file name
%R                                                 =  unsorted (randomly)
%N3                                               = sort by the third number in the file name
... and many more ...


Step 2)
now click on the header of the "Future Names" column  to sort for your need. (click twice to sort descending)

Step 3)
Now clear your Expression that you used for sorting. (the files are still in order you sorting them)

Step 4)
Wrote your "real" Expression.


Some hints:
* if you want to use an counter %n AND you have checked the files before.... just un-check and then re-check the selection to get the right "selecting order"
* for to sort by the second word in an file name use e.g. : %b[2] as Expression at step 1)
* for to sort by n-th char use an RegEx like:  %b(s/.{8}(.).+/\1/)
   (replace the digit   '8'   with the char position minus 1 of the char column you want to sort by.)
    EXAMPLE:   
                  Order  number 123D.txt
                  Order  number 124E.txt
                  Order  number 125A.txt
                  1234567890123456
                                 1
                  I have the need to sort at the 17-th char so i have to use the digit 16  ...  because of how my RegEx is composed.


If you use other tricks please share them with us ;-)


------------------------------------------------------------------------------------------------------------

                                             Siren is a freeware file renaming program
                                               - portable, highly flexible, powerfully -
                                          If it's looking tricky it's easy to rename with Siren.
                                          http://www.scarabee-software.net/en/siren.html

Re: Advantage sorting

If you want sort your files by name length maybe this little "trick" can be useful:

- Select all the files you want to sort in the list
- Use %f(s/./-/g) as rename expression. This way all characters will be replaced by '-' (dash)
(The "Future names" will have the same number of characters as their associated "Current names" and will only differ from each other by their length)
- Click on the "Future name" column header once or twice depending on the sorting order you need