From: Alexander Butenko Date: Tue, 19 Jan 2010 05:42:21 +0000 (+0100) Subject: Order completion matches by most recent visit, ascending X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4b35435c2c3a40912dfa9e1f27d0f14407bb20e9;p=midori Order completion matches by most recent visit, ascending --- diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index b3281e14..5e4f3696 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -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);