Order completion matches by most recent visit, ascending

This commit is contained in:
Alexander Butenko 2010-01-19 06:42:21 +01:00 committed by Christian Dywan
parent 5bf92be622
commit 4b35435c2c

View file

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