Closed Bug 1209488 Opened 9 years ago Closed 9 years ago

[Music][NGA] List items beginning with a number should be last

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: wilsonpage, Unassigned)

Details

For list consistency and to map to gaia-fast-list picker, list items in the numbers (#) sections should appear last.

We should probably perform this sorting before items are returned from their respective service.
We're planning to use localeCompare (see bug 1209135), which puts numbers *first* (at least in English). I think we should just follow what localeCompare does because it allows us to easily have different sort orders for different locales, depending on how that locale prefers to sort its text.

Of course, this may also imply that gaia-fast-list will have to deal with accented characters. For instance, "in Swedish, ä sorts after z" (from the MDN docs about localeCompare). This might be somewhat more complex, but we should do our best to use the most natural sort order for the user's locale.
UX team: see comment 1. Does this make sense? I really think we should just trust the locale's sorting rules, even if it does make us different from iOS ;).
Flags: needinfo?(firefoxos-ux-bugzilla)
From UX triage - Agree with Jim, let's leave it be and leave it up to locale's sorting rules.

Thanks for pinging the UX team!
Flags: needinfo?(firefoxos-ux-bugzilla)
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.