Search Results Sort Order

Sc
Scrittore
Posts: 11
Joined: Sat Jul 22, 2017 7:07 pm
Platform: Mac

Thu Oct 26, 2017 1:21 am Post

Whenever I search for a particular string of words among some 20 chapters, those pages on which the words were found, of course, appear under Search Results in the Collection panel.

The problem I find, however, is that the chapters do not appear in sequential order, which for my purposes is rather important (e.g. determining where the first mention of a specific phrase or concept might appear). Logic would seem to dictate that the first occurrence would appear in the earliest chapter, the next in the next sequential chapter, and so on. The randomness of results delivered defeats my intended goal.

Is there a way to define such a sort order and keep it as the default?

Thanks to anyone for giving it thought (or best of all—an answer).

Gary

Sc
ScriverTid
Posts: 319
Joined: Tue May 06, 2014 9:38 am
Platform: Mac

Fri Oct 27, 2017 9:22 am Post

That's rather odd. I just did a name Search (on "All") and it delivered the Search results in Binder sequence (which itself is in Chapter sequence).

Is your Binder in Chapter sequence?

User avatar
auxbuss
Posts: 247
Joined: Mon Nov 30, 2015 9:50 pm
Platform: Mac
Contact:

Fri Oct 27, 2017 10:05 am Post

The sort order can be changed by clicking in the Search Results box below the Search Results header. There are three sort orders. If you right-click on the same box, then you can show other fields that determine the sort order. I suspect somewhere in there is your apparent randomness.
Image

Sc
Scrittore
Posts: 11
Joined: Sat Jul 22, 2017 7:07 pm
Platform: Mac

Fri Oct 27, 2017 6:14 pm Post

Odd indeed, SCRIVERTID. Yet I don't get the same behavior you're getting (using v2.8.1). Of the three attachments here, "Binder Order Before Search" indicates the proper chapter order (I use names rather than numbers). For clarity, the red numbers indicate the natural order of the chapters that (I would expect) should be delivered in search results.

Binder Order before search.jpg
Binder Order before search.jpg (668.97 KiB) Viewed 771 times


The second image, "Binder Order showing search results," shows the actual order delivered after searching on a particular word (though obviously the search phrase is irrelevant here; behavior is consistent on any search). Note the order now: The earliest chapter, Supposition, appears last, with Custody and Fingerprints above it. Doesn't matter what I search on, results still appear in random order.

Binder Order showing search results.jpg
Binder Order showing search results.jpg (253.52 KiB) Viewed 771 times


As for adding more columns, AUXBUSS—yes, I was hoping Scrivener conformed to the Mac OS standard of column selection, but as you see in the third graphic "Column Header," all I get is the option to Show or Hide. I've tried over and over with no different options.

Column Header.png
Column Header.png (51.73 KiB) Viewed 771 times


Thanks to both for checking in, but if there's something I'm just not seeing or finding here, I'd be grateful for a shove in the right direction. I find no Sorting options in Preferences either.

User avatar
rdale
Posts: 1767
Joined: Tue Jul 14, 2015 1:07 pm
Platform: Mac, Win + iOS
Location: St. Louis, MO
Contact:

Fri Oct 27, 2017 7:59 pm Post

Your last image shows the issue. See that upward-pointing caret at the right side of the "Search Results" column (to the left of the "Label" column)? That indicates you have it sorting in alphabetic order by title. Click on the "Search Results" header until there aren't any carets in any of the headers.
FKA: robertdguthrie
AKA: R Dale Guthrie, Robert, Mr. Obscure, and "Oh, it's you again".

Sc
Scrittore
Posts: 11
Joined: Sat Jul 22, 2017 7:07 pm
Platform: Mac

Fri Oct 27, 2017 8:06 pm Post

Brilliant! Such a simple thing, yet so elusive. I'd would not have thought a third click would clear sort order.

Thanks rdale. Life just became less complicated.

User avatar
auxbuss
Posts: 247
Joined: Mon Nov 30, 2015 9:50 pm
Platform: Mac
Contact:

Fri Oct 27, 2017 8:13 pm Post

Well, I did say! Not being smug. Just happy you are rolling again.
Image

Sc
Scrittore
Posts: 11
Joined: Sat Jul 22, 2017 7:07 pm
Platform: Mac

Fri Oct 27, 2017 8:28 pm Post

Ah, yes, I see now what you meant, sorry. What threw me was
If you right-click on the same box, then you can show other fields that determine the sort order.
. That didn't work. (But I've now learned to read more and test...thanks).

Sc
ScriverTid
Posts: 319
Joined: Tue May 06, 2014 9:38 am
Platform: Mac

Sun Oct 29, 2017 11:37 am Post

You learn something new... I've never seen that caret in Search Results! I've always assumed that if you do a Search, it returns the results in Binder order.