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

Re: [whatwg] Sortable Tables

From: Jirka Kosek <jirka@kosek.cz>
Date: Wed, 07 Nov 2012 10:54:19 +0100
Message-ID: <509A2FCB.8030600@kosek.cz>
CC: whatwg@lists.whatwg.org
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>


  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
Received on Wednesday, 7 November 2012 09:54:50 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:48 UTC