[whatwg] Sortable Tables

Silvia Pfeiffer silviapfeiffer1 at gmail.com
Wed Nov 7 01:47:49 PST 2012


On Wed, Nov 7, 2012 at 8:37 PM, Jirka Kosek <jirka at 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>



Agreed. My example was very crude and simple and worked fine for our
purposes, but something more generic (and internationalized) needs more
functionality like this.

Silvia.



More information about the whatwg mailing list