Re: [whatwg] Sortable Tables

2013-09-11 Thread Ian Hickson
On Fri, 19 Jul 2013, Stuart Langridge wrote: On Thu, Jul 18, 2013 at 11:48 PM, Ian Hickson i...@hixie.ch wrote: but time is more of a problem if you have multiple things in one cell. For example, one semi-common pattern is to put some data and an input type=checkbox in a single

Re: [whatwg] Sortable Tables

2013-07-18 Thread Ian Hickson
On Fri, 28 Dec 2012, Stuart Langridge wrote: Sorttable also allows authors to specify alternate content for a cell. td sorttable_customkey=11eleven/td tddata value=11eleven/data/td The sorttable.js solution is to specify a custom key, which sorttable pretends was the cell

Re: [whatwg] Sortable Tables

2012-12-28 Thread Ian Hickson
On Thu, 27 Dec 2012, Tab Atkins Jr. wrote: On Dec 27, 2012 6:04 PM, Ian Hickson i...@hixie.ch wrote: 2. What values should the sort property allow. One idea is that it takes a JS function similar to what JavaScript's sort function takes. If you leave it out then it just does

Re: [whatwg] Sortable Tables

2012-12-28 Thread Markus Ernst
Am 28.12.2012 03:04 schrieb Ian Hickson: I've added a feature to HTML to enable users (and authors) to sort tables. The basic design of the feature is that if a column's th has a sorted= attribute, the UA will sort the table every time the mutation observers would fire (before they fire). A

Re: [whatwg] Sortable Tables

2012-12-27 Thread Ian Hickson
I've added a feature to HTML to enable users (and authors) to sort tables. The basic design of the feature is that if a column's th has a sorted= attribute, the UA will sort the table every time the mutation observers would fire (before they fire). A table can have a sortable= attribute,

Re: [whatwg] Sortable Tables

2012-12-27 Thread Tab Atkins Jr.
On Dec 27, 2012 6:04 PM, Ian Hickson i...@hixie.ch wrote: 2. What values should the sort property allow. One idea is that it takes a JS function similar to what JavaScript's sort function takes. If you leave it out then it just does alphanumeric sort. I was going to have a comparator

Re: [whatwg] Sortable Tables

2012-12-27 Thread Boris Zbarsky
On 12/27/12 7:40 PM, Tab Atkins Jr. wrote: In JS, the comparator passed to sort() can potentially mutate the array that's being sorted, or delete it entirely. JS engines cope somehow. Note that per spec the behavior if the comparator mutates the array is undefined. Engines are allowed to go

Re: [whatwg] Sortable Tables

2012-11-09 Thread Pierre Dubois
On Tue Nov 6 11:25:21 PST 2012, Ian Hickson wrote: [snip] This is a very interesting idea. Is this something browser vendors would be interested in implementing? I'm hesitant to add a feature for this (which could be somewhat involved) before having the definite interest of some browser

Re: [whatwg] Sortable Tables

2012-11-08 Thread Cameron Jones
On Wed, Nov 7, 2012 at 11:42 AM, Simon Pieters sim...@opera.com wrote: On Wed, 07 Nov 2012 10:54:19 +0100, Jirka Kosek ji...@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

Re: [whatwg] Sortable Tables

2012-11-08 Thread Alex Russell
I'm much more inclined to solve this from the data axis. Asking the table itself to do the sorting is weird. Instead, you most often want to have some data source return you rows in sorted order (or indicate row order). If you do something like MDV, sorting the table is applying a sort to the

Re: [whatwg] Sortable Tables

2012-11-08 Thread Christoph Päper
Ian Hickson: On Thu, 1 Jul 2010, Christoph Päper wrote: Darn, my reply from yesterday got lost in data nirvana. This is a slightly shorter version thereof. So sortable tables should be marked as such. Opt-in: table sortable collapsible “sortable=auto” should be the default and resolve to

Re: [whatwg] Sortable Tables

2012-11-08 Thread Ojan Vafai
I like this approach. One thing this loses is having default styling for sortable headers. It would be awesome if sortable tables looked the same across pages instead of each page needing to invent their own up/down arrow UI. Also, is MDV intelligent enough to know that you just moved items

Re: [whatwg] Sortable Tables

2012-11-08 Thread Tab Atkins Jr.
On Thu, Nov 8, 2012 at 8:59 AM, Ojan Vafai o...@chromium.org wrote: On Thu, Nov 8, 2012 at 4:17 AM, Alex Russell slightly...@google.com wrote: I'm much more inclined to solve this from the data axis. Asking the table itself to do the sorting is weird. Instead, you most often want to have some

Re: [whatwg] Sortable Tables

2012-11-07 Thread Silvia Pfeiffer
On Wed, Nov 7, 2012 at 8:37 PM, Jirka Kosek ji...@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

Re: [whatwg] Sortable Tables

2012-11-07 Thread Jirka Kosek
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

Re: [whatwg] Sortable Tables

2012-11-07 Thread Stuart Langridge
I'm the author of http://www.kryogenix.org/code/browser/sorttable/, a moderately popular JavaScript table sorting script. As such, I have about nine years worth of anecdata about how authors want their HTML tables to be sorted, the sorts of things they request, and issues that may be worth taking

Re: [whatwg] Sortable Tables

2012-11-07 Thread Simon Pieters
On Wed, 07 Nov 2012 10:54:19 +0100, Jirka Kosek ji...@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

Re: [whatwg] Sortable Tables

2012-11-06 Thread Ian Hickson
On Thu, 1 Jul 2010, Christoph Päper wrote: It's a common task outside HTML to sort tables by one or more of its columns. There does seem interest among web content providers in making tables client-side sortable since there are several Javascript solutions to do just that, eg.

Re: [whatwg] Sortable Tables

2012-11-06 Thread Ojan Vafai
On Tue, Nov 6, 2012 at 11:25 AM, Ian Hickson i...@hixie.ch wrote: On Thu, 1 Jul 2010, Christoph Päper wrote: It's a common task outside HTML to sort tables by one or more of its columns. There does seem interest among web content providers in making tables client-side sortable since

Re: [whatwg] Sortable Tables

2012-11-06 Thread Boris Zbarsky
On 11/6/12 11:39 AM, Ojan Vafai wrote: This is a use-case that I absolutely think it makes sense to address. Agreed. Not that I can commit to implementing, necessarily, but I do think this is a common want. A couple thoughts off the top of my head: 1. Would sorting actually reorder the

Re: [whatwg] Sortable Tables

2012-11-06 Thread Silvia Pfeiffer
On Wed, Nov 7, 2012 at 6:55 AM, Boris Zbarsky bzbar...@mit.edu wrote: On 11/6/12 11:39 AM, Ojan Vafai wrote: This is a use-case that I absolutely think it makes sense to address. Agreed. Not that I can commit to implementing, necessarily, but I do think this is a common want. Great to

Re: [whatwg] Sortable Tables

2012-11-06 Thread Christoph Päper
Ian Hickson (2012-11-06): On Thu, 1 Jul 2010, Christoph Päper wrote: For starters, only rows inside ‘tbody’s shall be reordered. That means every row groupp shall be sorted independently from others, while ‘thead’ and ‘tfoot’ remain unsorted, possibly bearing sort widgets. Not every table

[whatwg] Sortable Tables

2010-07-01 Thread Christoph Päper
It’s a common task outside HTML to sort tables by one or more of its columns. There does seem interest among web content providers in making tables client-side sortable since there are several Javascript solutions to do just that, eg. http://meta.wikimedia.org/wiki/Help:Sorting,

Re: [whatwg] Sortable Tables

2010-07-01 Thread Peter Kasting
On Thu, Jul 1, 2010 at 11:38 AM, Christoph Päper christoph.pae...@crissov.de wrote: I have not found much on sortable tables on whatwg.org, especially when excluding ‘datagrid’. Why are you excluding datagrid, when that's the precise element aimed at addressing your issue? PK

Re: [whatwg] Sortable Tables

2010-07-01 Thread Christoph Päper
Peter Kasting: Why are you excluding datagrid, when that's the precise element aimed at addressing your issue? Because of r3555 http://lists.whatwg.org/htdig.cgi/commit-watchers-whatwg.org/2009/002723.html where it was removed and because I don’t think this requires a new element at all.