Closed Bug 557636 Opened 16 years ago Closed 16 years ago

nsIXULSortService should support numerical sorting

Categories

(Core :: XUL, enhancement)

enhancement
Not set
normal

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.
Blair, does it block our sorting in the new addons manager or can we use a workaround?
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.
Added a patch in bug 379745.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
No longer blocks: 550048
You need to log in before you can comment on or make changes to this bug.