Page 1 of 2
Can i override sorting from QuickSearch?
Posted: 05 Sep 2022 22:44
by taufan
Hi,
For example i wanna search "cow" and "yellow" images with random order.
Can i override sorting from QuickSearch input?
Maybe someting like this:
Any idea?
Thanks.
Re: Can i override sorting from QuickSearch?
Posted: 05 Sep 2022 23:12
by highend
No, write a script instead...
Re: Can i override sorting from QuickSearch?
Posted: 02 Sep 2023 22:15
by jupe
Just recycling this topic.
@Don: I have always experienced quicksearch returns as being alphabetical per folder, I guess I was just usually using NTFS, but I have now noticed that the return for FAT32/exFAT is unsorted, so I just wanted to double check, is that correct that depending on file system the order will change?, I understood that to be the case for listfolder, but the returned order of QS and listfolder don't match, so it makes me uncertain.
Re: Can i override sorting from QuickSearch?
Posted: 04 Sep 2023 23:13
by eil
I don't have answers, but have the question of myself corresponding to the topic's name.
When search happens results get added one after another, but when search ends there some sorting happens, changing that order from before - is there a way to change this/keep the order of how items were added to search results during the process?
I just really hate the often situation, when during search i see item i wanna check, and right the moment mouse pointer is over an item to open, search suddenly finishes > everything gets immediately re-sorted > i end up opening totally different item.
Re: Can i override sorting from QuickSearch?
Posted: 08 Sep 2023 11:43
by admin
jupe wrote: ↑02 Sep 2023 22:15
Just recycling this topic.
@Don: I have always experienced quicksearch returns as being alphabetical
per folder, I guess I was just usually using NTFS, but I have now noticed that the return for FAT32/exFAT is unsorted, so I just wanted to double check, is that correct that depending on file system the order will change?, I understood that to be the case for listfolder, but the returned order of QS and listfolder don't match, so it makes me uncertain.
Isn't the sorting just done according to the sort order of the search results list?
And note also this setting in the right-click menu of the info bar:
Re: Can i override sorting from QuickSearch?
Posted: 08 Sep 2023 11:49
by admin
eil wrote: ↑04 Sep 2023 23:13
I don't have answers, but have the question of myself corresponding to the topic's name.
When search happens results get added one after another, but when search ends there some sorting happens, changing that order from before - is there a way to change this/keep the order of how items were added to search results during the process?
I just really hate the often situation, when during search i see item i wanna check, and right the moment mouse pointer is over an item to open, search suddenly finishes > everything gets immediately re-sorted > i end up opening totally different item.
Set your search result list sort order to "Unsorted", then check this box:
Re: Can i override sorting from QuickSearch?
Posted: 08 Sep 2023 16:52
by jupe
admin wrote: ↑08 Sep 2023 11:43
Isn't the sorting just done according to the sort order of the search results list?
Of course I am talking about SC quicksearch though, that is why I mentioned listfolder.
Re: Can i override sorting from QuickSearch?
Posted: 08 Sep 2023 18:01
by admin
jupe wrote: ↑02 Sep 2023 22:15
Just recycling this topic.
@Don: I have always experienced quicksearch returns as being alphabetical
per folder, I guess I was just usually using NTFS, but I have now noticed that the return for FAT32/exFAT is unsorted, so I just wanted to double check, is that correct that depending on file system the order will change?, I understood that to be the case for listfolder, but the returned order of QS and listfolder don't match, so it makes me uncertain.
I checked it: Yes, correct. No sorting is done. Results are returned as provided by the file system.
However, the SC listfolder is sorted in ABC order by default (and further affected by the setting of Configuration | General | Sort and Rename | Sort | Sort method).
Re: Can i override sorting from QuickSearch?
Posted: 08 Sep 2023 18:19
by jupe
OK, I guess I will need to get in the habit of always doing post results sorting if I am going to be using scripts on exFAT drives and need to ensure that for example a xml file comes after a same name jpg, until now I had incorrectly assumed I could rely on QS results being alphabetical on all file systems.
Re: Can i override sorting from QuickSearch?
Posted: 08 Sep 2023 20:17
by eil
admin wrote: ↑08 Sep 2023 11:49
Set your search result list sort order to "Unsorted", then check this box:
Thank for for a hint. Decided to mention that after i set Sort order = Unsorted, that mark is already auto-set and i actually can't un-mark it. Looks little weird but doesn't seem to harm.
Re: Can i override sorting from QuickSearch?
Posted: 08 Sep 2023 20:22
by jupe
it gets unmarked by you changing the sort
Re: Can i override sorting from QuickSearch?
Posted: 08 Sep 2023 20:29
by admin
jupe wrote: ↑08 Sep 2023 18:19
OK, I guess I will need to get in the habit of always doing post results sorting if I am going to be using scripts on exFAT drives and need to ensure that for example a xml file comes after a same name jpg, until now I had incorrectly assumed I could rely on QS results being alphabetical on all file systems.
Well, there's a
flags parameter. One could add something here...

Re: Can i override sorting from QuickSearch?
Posted: 08 Sep 2023 20:56
by jupe
I was hoping you might feel inclined to do that...

Re: Can i override sorting from QuickSearch?
Posted: 08 Sep 2023 21:14
by admin
This should do:
Code: Select all
+ SC QuickSearch enhanced: The new flag "o" ("order") sorts the results alphabetically
ascending. This makes a subtle difference on NTFS and a huge difference on
FAT32/exFAT.
Syntax: quicksearch([query="*"], [path], [separator="<crlf>"], [flags])
flags: [optional] String of flags to modify the function.
o: Sort results alphabetically in ascending order.
Examples:
text quicksearch("*.txt", 3:=""); //unsorted
text quicksearch("*.txt", 3:="o"); //alphabetically ascending
Question: which of these settings should affect the outcome?
- Configuration | General | Sort and Rename | Sort | Sort method
- Configuration | General | Sort and Rename | Sort | Sort filenames by base*
* ah, this is currently not possible anyway
Re: Can i override sorting from QuickSearch?
Posted: 08 Sep 2023 21:52
by admin
PS: Hmmm, maybe sorted should be the default and there should be a "u" flag for unsorted?
