mirror of https://github.com/nextcloud/contacts
Groups sorting fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
dbe5ea7e99
commit
42953d1ed2
|
@ -300,7 +300,7 @@ const actions = {
|
|||
* @returns {Promise}
|
||||
*/
|
||||
async getContactsFromAddressBook(context, { addressbook }) {
|
||||
return addressbook.dav.findAllAndFilterBySimpleProperties(['EMAIL', 'UID', 'CATEGORIES', 'FN', 'ORG'])
|
||||
return addressbook.dav.findAllAndFilterBySimpleProperties(['EMAIL', 'UID', 'CATEGORIES', 'FN', 'ORG', 'N'])
|
||||
.then((response) => {
|
||||
// We don't want to lose the url information
|
||||
// so we need to parse one by one
|
||||
|
|
|
@ -146,6 +146,8 @@ export default {
|
|||
counter: group.contacts.length
|
||||
}
|
||||
}
|
||||
}).sort(function(a, b) {
|
||||
return parseInt(b.utils.counter) - parseInt(a.utils.counter)
|
||||
})
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue