Closed
Bug 755796
Opened 12 years ago
Closed 12 years ago
Contacts API: multiple sorting fields
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: gwagner, Assigned: gwagner)
Details
Attachments
(1 file, 2 obsolete files)
3.69 KB,
patch
|
fabrice
:
review+
|
Details | Diff | Splinter Review |
We currently only sort by either first or family name. If 2 entries have the same familyName for example we want to continue sorting based on the first name.
Assignee | ||
Comment 1•12 years ago
|
||
Assignee: nobody → anygregor
Assignee | ||
Comment 2•12 years ago
|
||
Attachment #624514 -
Attachment is obsolete: true
Assignee | ||
Updated•12 years ago
|
Attachment #624516 -
Flags: review?(fabrice)
Assignee | ||
Comment 3•12 years ago
|
||
There was a bug in the first version. Entries can be undefined.
Attachment #624516 -
Attachment is obsolete: true
Attachment #624516 -
Flags: review?(fabrice)
Attachment #625799 -
Flags: review?(fabrice)
Comment 4•12 years ago
|
||
Comment on attachment 625799 [details] [diff] [review] patch Review of attachment 625799 [details] [diff] [review]: ----------------------------------------------------------------- r=me with comments addressed ::: dom/contacts/fallback/ContactService.jsm @@ +89,5 @@ > + } > + > + if (sortByNameSet) { > + result = x.localeCompare(y); > + } nit: add blank line @@ +106,1 @@ > return msg.findOptions.sortOrder == 'ascending' ? result : -result; Do a |let sortOrder = msg.findOptions.sortOrder| like for sortBy and reuse it.
Attachment #625799 -
Flags: review?(fabrice) → review+
Assignee | ||
Comment 5•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/d529197a47f0
Comment 6•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d529197a47f0
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
You need to log in
before you can comment on or make changes to this bug.
Description
•