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,
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
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