Sort contacts alphabetically (#116)

Does it for contacts app and phone app.
This commit is contained in:
RockySouthpaw authored and GitHub committed 2021-02-23 22:13:36 -05:00
1 parent d4fbdc8e0c
commit d2461bab16
1 file changed
+1 -1
+1 -1
View File
@@ -18,7 +18,7 @@ interface ContactId {
}
async function fetchAllContacts(identifier: string): Promise<Contacts[]> {
const query = 'SELECT * FROM npwd_phone_contacts WHERE identifier = ?';
const query = 'SELECT * FROM npwd_phone_contacts WHERE identifier = ? ORDER BY display ASC';
const [results] = await pool.query(query, [identifier]);
const contacts = <Contacts[]>results;
return contacts;