Custom sort...

General discussion related to "Everything".
Post Reply
meteorquake
Posts: 627
Joined: Thu Dec 15, 2016 9:44 pm

Custom sort...

Post by meteorquake »

Hello all! Can someone remind me if there's a way to custom sort, for example hypothetically suppose I wanted files with Jupiter in the title to appear at the result top, then files with Saturn, then everything else...?
David
void
Developer
Posts: 19830
Joined: Fri Oct 16, 2009 11:31 pm

Re: Custom sort...

Post by void »

Can be done with formulas and custom columns.

Code: Select all

<<Jupiter a:=1> | <saturn a:=2> | <a:=3>> sort:a
meteorquake
Posts: 627
Joined: Thu Dec 15, 2016 9:44 pm

Re: Custom sort...

Post by meteorquake »

Aha thanks, that seems to work, and the subsort can be done a similar way, so I have

Code: Select all

file: <<orig a:=4> | <ext:pdf;djvu;odt a:=1> | <ext:txt;ini a:=2> | <a:=3>> <<ext:pdf;djvu;odt b:=$name:> | <b:=$ext:>> sort:a,b
It may be there could be a page of language equivalents so that people who naturally know how to do a thing in some language can look a thing up and find the Everything language equivalent.

So if someone knows SQL they would look up Case When... or if someone knows VBA they would look up Switch() or If Then Else, and so be given a link to the type of code above. They could look up Order By and find sort: and so on

David
Post Reply