Bug 418343: sort form history autocomplete results alphabetically, r=sdwilsh

This commit is contained in:
Gavin Sharp 2008-09-04 18:05:33 -04:00
parent 9a1e56065c
commit 02170ceef8

View File

@ -448,7 +448,7 @@ nsFormHistory::OpenDatabase()
getter_AddRefs(mDBFindEntryByName));
NS_ENSURE_SUCCESS(rv,rv);
rv = mDBConn->CreateStatement(NS_LITERAL_CSTRING("SELECT value FROM moz_formhistory WHERE fieldname=?1"),
rv = mDBConn->CreateStatement(NS_LITERAL_CSTRING("SELECT value FROM moz_formhistory WHERE fieldname=?1 ORDER BY value ASC"),
getter_AddRefs(mDBGetMatchingField));
NS_ENSURE_SUCCESS(rv,rv);