Page 1 of 2
Ignore leading words doesn't work
Posted: 27 Jun 2018 23:59
by javicozar
Hello,
I have a problem with XYplorer: the "ignore leading words when sorting" function doesn't work for me except on the "Name" column. it's odd and I don't understand why, but for instance, in a list of songs and artists, the "ignore leading words when sorting" function works on the "Name" column, but if I sort by the "Artist" column or the "Title" column it simply doesn't work.
Any body can help me, please?
Thanks in advance,
Javier
Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 00:16
by highend
It's bound to the name column...
You can always create a custom column that delivers the same functionality (pro license only!)
Paste this into the addressbar:
snippet;
and execute it with {ENTER}
Paste this into that window:
Code: Select all
Snip: CustomColumn 1
XYplorer 19.00.0200, 28.06.2018 00:15:27
Action
ConfigureColumn
Caption
Title
Type
3
Definition
return regexreplace(property("#tag.title", <cc_item>), "^(a|an|the) ");
Format
0
Trigger
0
Item Type
0
Item Filter
{:Audio}
Confirm it with the OK button
To do this with an artist column, just replace the
line after "Caption" and the property #tag.title with #tag.artist
Add the custom colum to your columns...
Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 08:28
by admin
I think it wouldn't harm if I extended this functionality to those other columns.
Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 08:36
by jupe
On a similar topic, what do you think about making the natural numeric sort config option apply to other columns, or would that be can of worms?

- clip-15_06_18_17.00.png (3.6 KiB) Viewed 1878 times
Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 08:49
by admin
jupe wrote:On a similar topic, what do you think about making the natural numeric sort config option apply to other columns, or would that be can of worms?
clip-15_06_18_17.00.png
Extra columns of type "Number" are already sorted numerically (independent of that option). But not the other types... yes, I think that could/should be done (tie them to that option). Let's try it...
Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 09:26
by javicozar
highend wrote:It's bound to the name column...
You can always create a custom column that delivers the same functionality (pro license only!)
Paste this into the addressbar:
snippet;
and execute it with {ENTER}
Paste this into that window:
Code: Select all
Snip: CustomColumn 1
XYplorer 19.00.0200, 28.06.2018 00:15:27
Action
ConfigureColumn
Caption
Title
Type
3
Definition
return regexreplace(property("#tag.title", <cc_item>), "^(a|an|the) ");
Format
0
Trigger
0
Item Type
0
Item Filter
{:Audio}
Confirm it with the OK button
To do this with an artist column, just replace the
line after "Caption" and the property #tag.title with #tag.artist
Add the custom colum to your columns...
Thank you for your answer. I've tried your script and it works... but it deletes the articles, so for instance, a song called "The Power of Love" it shows as "Power of Love". That's not the way I've intended to go, I'would like to see the correct name of the song, "The Power of Love", but sorted on the "P" letter rather than the "T" letter.
Anyway, I Appreciate very much your help.
Javier
Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 09:33
by highend
but it deletes the articles, so for instance, a song called "The Power of Love" it shows as "Power of Love"
Sure, it can't be done in any other way atm. But it probably won't take long (one of the next betas I guess) until that option
got expanded to other colums as well...
Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 09:33
by javicozar
admin wrote:I think it wouldn't harm if I extended this functionality to those other columns.
I've tested XYplorer a few months ago before I've purchased the license and... I'm not totally sure, but I think that on my tests I could sort ignoring articles on whichever column I wanted, the Title column or the Artist column, for instance. Maybe my memory is doing tricks with that matter, not sure... but I would swear that I did that kind of sorting. In fact, that was one of the main reasons to buy the license as Microsoft Explorer couldn't do that (couldn't do a lot of things XYplorer can, as a matter of fact) and this is a function I need on a daily basis in my work.
Am I correct? That was a function disabled on latest version? Or XYplorer never had this option and I'm remembering wrong?
In any case, would be too much to ask you to extend this functionality to the other columns as a part of the software?
Thank you for your time!!!
Javier
Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 09:35
by javicozar
highend wrote:but it deletes the articles, so for instance, a song called "The Power of Love" it shows as "Power of Love"
Sure, it can't be done in any other way atm. But it probably won't take long (one of the next betas I guess) until that option
got expanded to other colums as well...
Hope so! Thank you for your kind reply!!!
Javier
Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 11:33
by admin
You can always try out earlier versions to check your memory:
https://www.xyplorer.com/freezer.php

Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 12:29
by admin
Done. Next beta version has it.

Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 12:48
by javicozar
admin wrote:Done. Next beta version has it.

Thanks!!!!
Javier
Re: Ignore leading words doesn't work
Posted: 28 Jun 2018 22:23
by jupe
Since you say you use this feature a lot, you may already know about this, but in case you didn't I just thought I would mention that you can customize the list of words that are skipped if that is of any interest to you, it just takes a tweak of the ini file:
for instructions on how to tweak:
https://www.xyplorer.com/faq-topic.php?id=tweak
Re: Ignore leading words doesn't work
Posted: 05 Jul 2018 09:21
by javicozar
jupe wrote:Since you say you use this feature a lot, you may already know about this, but in case you didn't I just thought I would mention that you can customize the list of words that are skipped if that is of any interest to you, it just takes a tweak of the ini file:
for instructions on how to tweak:
https://www.xyplorer.com/faq-topic.php?id=tweak
Yes, I did know this feature. In fact, I tweaked the .ini file in that line.
Thank you very much !!
Re: Ignore leading words doesn't work
Posted: 05 Jul 2018 09:23
by javicozar
admin wrote:Done. Next beta version has it.

I've already tested last beta version and this feature works. Not very smooth, because the sorting takes a little time to do its thing, must reload and refresh several times... but eventually it works properly and after a little time it shows the items well sorted.
Thank you for adding this feature!! It helps me a lot in my daily work!!!