<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>20524</bug_id>
          
          <creation_ts>2012-12-27 01:12:03 +0000</creation_ts>
          <short_desc>We should come up with a more intelligent default sorting algorithm.</short_desc>
          <delta_ts>2013-03-02 01:30:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#table-sorting-model</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>duboisp2</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80632</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2012-12-27 01:12:03 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80633</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-12-27 01:19:10 +0000</bug_when>
    <thetext>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 &quot;season 5 episode 14&quot;, 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&apos;s in the form digits, -digits, digets.digits, -digits.digits, or digits.digits.digits, and sorting accordingly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80649</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2012-12-27 22:31:28 +0000</bug_when>
    <thetext>Stuart says he has also been asked about exponent floats (as in, 1.2e3).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83898</commentid>
    <comment_count>3</comment_count>
    <who name="">contributor</who>
    <bug_when>2013-03-02 01:30:23 +0000</bug_when>
    <thetext>Checked in as WHATWG revision r7727.
Check-in comment: Sort algorithm, first draft.
http://html5.org/tools/web-apps-tracker?from=7726&amp;to=7727</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>