Order bookmarks descending. Folders should always be on top

This commit is contained in:
Alexander Butenko 2010-06-12 23:19:55 -04:00 committed by Christian Dywan
parent 3b46d80161
commit 9bff58199a

View file

@ -139,7 +139,7 @@ midori_bookmarks_read_from_db (MidoriBookmarks* bookmarks,
db = g_object_get_data (G_OBJECT (bookmarks->array), "db");
sqlcmd = "SELECT uri, title, type from bookmarks where folder = ?"
" ORDER BY type, title ASC";
" ORDER BY type DESC";
result = sqlite3_prepare_v2 (db, sqlcmd, -1, &statement, NULL);
sqlite3_bind_text (statement, 1, g_strdup(folder), -1, g_free);