mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Sort contacts alphabetically (#116)
Does it for contacts app and phone app.
This commit is contained in:
1 parent
d4fbdc8e0c
commit
d2461bab16
1 file changed
+1
-1
@@ -18,7 +18,7 @@ interface ContactId {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function fetchAllContacts(identifier: string): Promise<Contacts[]> {
|
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 [results] = await pool.query(query, [identifier]);
|
||||||
const contacts = <Contacts[]>results;
|
const contacts = <Contacts[]>results;
|
||||||
return contacts;
|
return contacts;
|
||||||
|
|||||||
Reference in new issue
Block a user