Closed
Bug 557636
Opened 16 years ago
Closed 16 years ago
nsIXULSortService should support numerical sorting
Categories
(Core :: XUL, enhancement)
Core
XUL
Tracking
()
RESOLVED
DUPLICATE
of bug 379745
People
(Reporter: Unfocused, Unassigned)
Details
For non-template usage, nsIXULSortService sorts based on string comparison. However, it'd be very useful for it to support numerical sorting.
Comment 1•16 years ago
|
||
Blair, does it block our sorting in the new addons manager or can we use a workaround?
| Reporter | ||
Comment 2•16 years ago
|
||
It's not blocking any functionality in the addons manager, no - but it is needed for code correctness. I'm using a hacky workaround at the moment, by prepending a bunch of 0's to the string and limiting the length of the string. eg: "0000000123", "0087654321".
It works, but its not the proper way of doing it, and will break for suitably large numbers.
Comment 3•16 years ago
|
||
Added a patch in bug 379745.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•