sort order by multi properties mix

Have a suggestion for "Everything"? Please post it here.
levinar_yh
Posts: 7
Joined: Fri Apr 10, 2026 10:02 pm

sort order by multi properties mix

Post by levinar_yh »

I'd like to sort files simultaneously order by either path or .lnk's shortcut-target. Not 2ndary sort. Like,
sort-or:shortcut-target;path

Evaluate the second condition only if the first condition is blank.

Because the shortcut file points to the same things. Sometimes I want to count and organize these similarities and overlaps.
For the .lnk file, I need to evaluate at the target. Not path.

The fact that I can use file properties as search criteria is already groundbreaking!
Thank you for your continued develop and support.
void
Developer
Posts: 20167
Joined: Fri Oct 16, 2009 11:31 pm

Re: sort order by multi properties mix

Post by void »

Please try the following search:

A:=LEN($shortcut-target:)?$shortcut-target::$fullpath: sort:A


Optionally show the shortcut target and column A with:

A:=LEN($shortcut-target:)?$shortcut-target::$fullpath: sort:A add-column:shortcut-target;A


Formulas
levinar_yh
Posts: 7
Joined: Fri Apr 10, 2026 10:02 pm

Re: sort order by multi properties mix

Post by levinar_yh »

Amazing, and the query performance is fast.
Thank you. I'll try it.