i find i often need to sort by a specific part of a name since duplicating a file adds a suffix ect. ex: example_0109.txt
i did a bit of searching and wast able to find a script or way to do this if anyone can be helpful with a soluton
list sort by suffix/prefix
Re: list sort by suffix/prefix
And now you want to sort by the part 0109?
One of my scripts helped you out? Please donate via Paypal
Re: list sort by suffix/prefix
Add a scripted custom column and use e.g. this script (for this special case):
Then you can use that column to sort
Code: Select all
return gettoken(<cc_base>, 2, "_");
One of my scripts helped you out? Please donate via Paypal
Re: list sort by suffix/prefix
that helps thanks. but what about if it would be somthing like: example_111_0109-11.txt ; and still trying to sort by the 0109 segment?
Last edited by Redan13 on 05 Jul 2025 11:04, edited 1 time in total.
Re: list sort by suffix/prefix
Then you change to a more appropriate script:
return gettoken(gettoken(<cc_base>, 3, "_"), 1, "-");One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club