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)
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
Reporter | ||
Comment 1•12 years ago
|
||
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'
Comment 2•10 years ago
|
||
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.
Description
•