]> spindle.queued.net Git - midori/commitdiff
Order completion matches by most recent visit, ascending
authorAlexander Butenko <a.butenka@gmail.com>
Tue, 19 Jan 2010 05:42:21 +0000 (06:42 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 19 Jan 2010 05:42:21 +0000 (06:42 +0100)
midori/midori-locationaction.c

index b3281e14b5050f2ea51ac84fa828de53da3c3ab6..5e4f3696c2eeebee9893744109e7c2943a77634f 100644 (file)
@@ -388,7 +388,7 @@ midori_location_action_popup_timeout_cb (gpointer data)
         and prepending/ appending % to the key. */
     query = sqlite3_mprintf ("SELECT DISTINCT uri, title FROM history WHERE "
                              "uri LIKE '%%%q%%' OR title LIKE '%%%q%%'"
-                             "ORDER BY day LIMIT %d",
+                             "ORDER BY date ASC LIMIT %d",
                              action->key, action->key, MAX_ITEMS);
     result = sqlite3_prepare_v2 (db, query, -1, &statement, NULL);
     sqlite3_free (query);