Skip to content

Commit

Permalink
Fixing #5545
Browse files Browse the repository at this point in the history
  • Loading branch information
arcturus committed Sep 30, 2012
1 parent 46119d3 commit 68d281d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/communications/contacts/js/contacts_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,15 @@ contacts.List = (function() {
var liElem = liElems[i];
var familyName = liElem.querySelector('strong > b').textContent.trim();
var givenName = liElem.querySelector('strong');
givenName = givenName.childNodes[0].nodeValue.trim();

if (!orderByLastName) {
var aux = familyName;
familyName = givenName;
givenName = aux;
} else {
givenName = givenName.childNodes[0].nodeValue.trim();
}

var name = getStringToBeOrdered({
familyName: [familyName],
givenName: [givenName]
Expand Down

0 comments on commit 68d281d

Please sign in to comment.