|
@ -364,11 +364,7 @@ export default class ContactsView extends Vue { |
|
|
if (this.showGiveNumbers) { |
|
|
if (this.showGiveNumbers) { |
|
|
this.loadGives(); |
|
|
this.loadGives(); |
|
|
} |
|
|
} |
|
|
const allContacts = await db.contacts.toArray(); |
|
|
this.contacts = await db.contacts.orderBy("name").toArray(); |
|
|
this.contacts = R.sort( |
|
|
|
|
|
(a: Contact, b) => (a.name || "").localeCompare(b.name || ""), |
|
|
|
|
|
allContacts, |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
if (this.contactEndorserUrl) { |
|
|
if (this.contactEndorserUrl) { |
|
|
await this.addContactFromScan(this.contactEndorserUrl); |
|
|
await this.addContactFromScan(this.contactEndorserUrl); |
|
@ -576,11 +572,7 @@ export default class ContactsView extends Vue { |
|
|
-1, |
|
|
-1, |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
const allContacts = await db.contacts.toArray(); |
|
|
this.contacts = await db.contacts.orderBy("name").toArray(); |
|
|
this.contacts = R.sort( |
|
|
|
|
|
(a: Contact, b) => (a.name || "").localeCompare(b.name || ""), |
|
|
|
|
|
allContacts, |
|
|
|
|
|
); |
|
|
|
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|