sort files by names from 6th column

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
tiger08
Posts: 10
Joined: 13 Nov 2014 08:25

sort files by names from 6th column

Post 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

highend
Posts: 14578
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: sort files by names from 6th column

Post 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);
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 65012
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: sort files by names from 6th column

Post by admin »


tiger08
Posts: 10
Joined: 13 Nov 2014 08:25

Re: sort files by names from 6th column

Post 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.

Post Reply