From 4b35435c2c3a40912dfa9e1f27d0f14407bb20e9 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Tue, 19 Jan 2010 06:42:21 +0100 Subject: [PATCH] Order completion matches by most recent visit, ascending --- midori/midori-locationaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5