searchengine: Do not fight filechooser search mode sorting
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 8 Mar 2023 10:23:39 +0000 (11:23 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 8 Mar 2023 10:33:10 +0000 (11:33 +0100)
Provide the hits in an order that is more easily consumed by the
filechooser, and less jarring when populating.

gtk/gtksearchenginetracker3.c

index 86a8e8fe98e01f59c3d02e315972ca7f8c3f0a20..bc10e4db034ac90683697042e6d30550c4d79ae6 100644 (file)
@@ -52,7 +52,7 @@
   "  OPTIONAL { ?urn nie:interpretedAs ?ie } ."                        \
   __PATTERN__                                                          \
   "} "                                                                 \
-  "ORDER BY DESC(fts:rank(?urn)) DESC(?url)"
+  "ORDER BY ASC(?url)"
 
 #define SEARCH_QUERY SEARCH_QUERY_BASE("")
 #define SEARCH_RECURSIVE_QUERY SEARCH_QUERY_BASE("FILTER (STRSTARTS (?url, CONCAT (~location, '/')))")