Closed Bug 769347 Opened 13 years ago Closed 13 years ago

B2G SMS: Messages returned from database should be sorted by time stamp.

Categories

(Core :: DOM: Device Interfaces, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: steveck, Assigned: vicamo)

References

Details

Attachments

(2 files, 1 obsolete file)

No description provided.
Inside SmsDatabaseService.keyIntersection(), the order of final results is the order of last keys array filtered. This patch always filters keys[FILTER_TIMESTAMP], so it should be always ordered by timestamp.
(In reply to Vicamo Yang [:vicamo] from comment #3) > Inside SmsDatabaseService.keyIntersection(), the order of final results is > the order of last keys array filtered. This patch always filters > keys[FILTER_TIMESTAMP], so it should be always ordered by timestamp. Good hack. Can you add a comment explaining this side-effect? r=me with that.
Address comment #4 from Philipp. Thank you.
Attachment #637592 - Attachment is obsolete: true
Attachment #638965 - Flags: review?(philipp)
Gaia fix is ready here(https://github.com/vicamo/gaia/tree/bugzilla/769347/master). I'll send a pull request once this is landed.
Attachment #638965 - Flags: review?(philipp) → review+
Assignee: nobody → vyang
Target Milestone: --- → mozilla16
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: