This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Specification: http://www.whatwg.org/specs/web-apps/current-work/ Multipage: http://www.whatwg.org/C#table-sorting-model Complete: http://www.whatwg.org/c#table-sorting-model Comment: We should come up with a more intelligent default sorting algorithm. Posted from: 76.102.14.57 User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.101 Safari/537.11
Specifically, one that handles all of the following: * IPv4 addresses * Version numbers (lists of integers) * Simple floating point numbers (-1.0, 0.1, 100, .100) * Simple floating point numbers with prefixes and suffixes ($3.00, $30.00, 30g, 0.35mm) - sorting on the number * Strings like "season 5 episode 14", sorting on the numbers * Strings without numbers, of course This probably means walking the strings one character at a time, and when we get to what looks like a number, figuring out if it's in the form digits, -digits, digets.digits, -digits.digits, or digits.digits.digits, and sorting accordingly.
Stuart says he has also been asked about exponent floats (as in, 1.2e3).
Checked in as WHATWG revision r7727. Check-in comment: Sort algorithm, first draft. http://html5.org/tools/web-apps-tracker?from=7726&to=7727