W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2012

Re: [whatwg] Sortable Tables

From: Simon Pieters <simonp@opera.com>
Date: Wed, 07 Nov 2012 12:42:41 +0100
To: "Jirka Kosek" <jirka@kosek.cz>
Message-ID: <op.wnehdwbridj3kv@device-23f190>
Cc: whatwg@lists.whatwg.org
On Wed, 07 Nov 2012 10:54:19 +0100, Jirka Kosek <jirka@kosek.cz> wrote:

> On 6.11.2012 23:18, Silvia Pfeiffer wrote:
>
>> * data-type: date, number, text etc which determines the comparison
>> function used in sort
>
> It would be very difficult to support sorting on dates and numbers as in
> HTML they are usually present formatted using specific locale. So there
> should be additional attribute added to td/th which can hold sort key
> which will override cell contents, something like
>
> <td sortas="2012-11-07">11. listopadu 2012</td>

<time> exists, and <data> exists for non-time machine-readable data; maybe  
they can be utilized in some way?

-- 
Simon Pieters
Opera Software
Received on Wednesday, 7 November 2012 11:43:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:11 GMT