mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Omit avatar character from sorting. Refs. #381
This commit is contained in:
parent
462290c78d
commit
898059b8ed
@ -2476,8 +2476,8 @@ OC.Contacts = OC.Contacts || {};
|
||||
if(rows[0].firstElementChild && rows[0].firstElementChild.textContent) {
|
||||
rows.sort(function(a, b) {
|
||||
// 10 (TEN!) times faster than using jQuery!
|
||||
return a.firstElementChild.textContent.trim().toUpperCase()
|
||||
.localeCompare(b.firstElementChild.textContent.trim().toUpperCase());
|
||||
return a.firstElementChild.lastElementChild.textContent.trim().toUpperCase()
|
||||
.localeCompare(b.firstElementChild.lastElementChild.textContent.trim().toUpperCase());
|
||||
});
|
||||
} else {
|
||||
// IE8 doesn't support firstElementChild or textContent
|
||||
|
Loading…
Reference in New Issue
Block a user