Closed Bug 867428 Opened 12 years ago Closed 10 years ago

Contacts: Sort Order when inserting Contacts is wrong

Categories

(Firefox OS Graveyard :: Gaia::Contacts, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: gwagner, Unassigned)

Details

js> 'E'.localeCompare('e') -32 We should compare lower case letters in: http://mxr.mozilla.org/gaia/source/apps/communications/contacts/js/contacts_list.js#791
The way we generate the string to compare in gaia doesn't give us the right result all the time. This is only used when we create a new contact and the order is right after restarting the app. We combine given and family name to create the sort string and this can result in wrong sorting. for example: existing contact has given-name: 'ab' insert given-name: 'a', family-name: 'c' we create 'ac' as sort string this results in an order where 'a' comes after 'ac'
Working good now, closing as works for me
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.