Page 1 of 1

sort files by names from 6th column

Posted: 13 Nov 2014 08:39
by tiger08
files are sorted by clicking the tab i.e. by name , size , date etc.
if I click name tab files are sorted by names, clicking again files are reverse sorted.

My problem is I want to sort files by ignoring first 4 characters from file names. my files are like:

001-Guitar.AIO.fD.ISBN-0470481331.pdf
002-Fashion.fD.ISBN-0470539267.pdf
003-Win.Treatments.SlipcoversfD.ISBN-0764584480.pdf
004-MS.SQL.Server.2008.AIO.DR.fD.ISBN-0470179546.pdf

If is possible.

I am not a Programmer, Kindly help.

Regards

Re: sort files by names from 6th column

Posted: 13 Nov 2014 10:13
by highend
Welcome to the club!

You would need a custom column to do that.

Look at this thread of how to create one, that uses a script: http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=12730

The script you'd need for your case is:

Code: Select all

return substr("<cc_base>", 4);

Re: sort files by names from 6th column

Posted: 13 Nov 2014 16:51
by admin

Re: sort files by names from 6th column

Posted: 17 Nov 2014 18:45
by tiger08
I tried the script by highend and it worked like magic.

Today I found another suggestion by admin.

Great Thanks to both highend and admin.

Thanks and Regards.