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

Re: [whatwg] Sortable Tables

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Wed, 7 Nov 2012 20:47:49 +1100
Message-ID: <CAHp8n2kdPrd_DHA40mDEGY2x4qKSG2aW5u-nrOFtW-bPZrDcdg@mail.gmail.com>
To: Jirka Kosek <jirka@kosek.cz>
Cc: whatwg@lists.whatwg.org, Boris Zbarsky <bzbarsky@mit.edu>
On Wed, Nov 7, 2012 at 8:37 PM, 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>

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.

Received on Wednesday, 7 November 2012 09:48:37 GMT

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