Is it possible to exclude words like "a", "an" and "the" from the name sort?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
unabatedshagie
Posts: 33
Joined: 07 Mar 2018 12:10

Is it possible to exclude words like "a", "an" and "the" from the name sort?

Post by unabatedshagie »

My brain automatically ignores words like "The" when thinking where a folder or file would be, so I'd automatically go looking for a folder called "The Beatles" under B and not T.

Is there any way of getting Xyplorer to sort the name column like this?

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

Re: Is it possible to exclude words like "a", "an" and "the" from the name sort?

Post by highend »

Apart from using a manual sort order you could use a scripted custom column as an alternative

Code: Select all

    if (<cc_isfolder>) { return regexreplace(<cc_name>, "^(a|an|the)\b\s*"); }
    else { return <cc_name>; }
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Is it possible to exclude words like "a", "an" and "the" from the name sort?

Post by jupe »

Enable this:

Tools | Customize List | [x] Ignore Articles When Sorting

unabatedshagie
Posts: 33
Joined: 07 Mar 2018 12:10

Re: Is it possible to exclude words like "a", "an" and "the" from the name sort?

Post by unabatedshagie »

jupe wrote: 20 May 2025 22:09 Enable this:

Tools | Customize List | [x] Ignore Articles When Sorting
Awesome, thanks.

Post Reply