A cool demo showing how to use unobtrusive DHTML to
Make all your tables sortable.
I thought about something like this after seeing some DOM demos and working with a CGI that let you sort tables by columns, but didn’t quite apply enough effort to do figure out how this should be done.
All things come to he who waits…
One interesting point I note from the code is that when you append an existing node to a list of DOM nodes, the API call (appendChild) checks if the node already exists in the list and if it does, removes it before appending it. This makes reordering the list much simpler than I thought it would be.