[whatwg] Sortable Tables

Tab Atkins Jr. jackalmage at gmail.com
Thu Nov 8 09:29:06 PST 2012

On Thu, Nov 8, 2012 at 8:59 AM, Ojan Vafai <ojan at chromium.org> wrote:
> On Thu, Nov 8, 2012 at 4:17 AM, Alex Russell <slightlyoff at 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 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
>> template that stamped out the view. That works with DOM-table backed tables
>> as well as server or JS-backed tables.
> 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.

Agreed, I favor a DOM-based solution because of this.

> Also, is MDV intelligent enough to know that you just moved items around or
> will it clobber and recreate the entire DOM?

It *should* be intelligent enough to recognize moves, as opposed to
just add/deletes.  Ask Raf or Adam about their progress on getting
this done.


More information about the whatwg mailing list