...which, given that defaultSortField and OPACdefaultSortField are both set to "relevance" out of the box, is just plain silly--the results are sorted with *lowest* relevance first! Trivial to fix, but can save new installs mucho frustration...
A little investigation showed that this value is actually initialized NULL--which you can't set in the interface--which shows "ascending." But the actual behavior of the sort is kinda screwy by that. To me, it makes sense to initialize the value to SOMETHING...
Created attachment 11659 [details] [review] Proposed patch
Created attachment 11675 [details] [review] Bug 8012: default values for defaultSortField/defaultSortOrder NULL on install ...which *looks* like "relevance/ascending" in the staff client, which doesn't make sense. This patch initializes the values at "relevance/descending", which is a functional combination. Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
QA Comment: Set the default sort order to relevance desc. Seems logical. Marked as Passed QA
*** Bug 4221 has been marked as a duplicate of this bug. ***
Patch pushed to master
Pushed to 3.8.x, will be in 3.8.5