Table sorting with JavaScript

I am implimenting 'Download' page for www.gniibe.org. I want to support sorting by date, by size, or by name (locally).

I found that JavaScript Library named libjs-extjs in Debian. I found the maintainer of this package is Thomas Goirand, whom I met in Ho Chi Minh City last year. We can see the example at Stateful Array Grid Example. But... It is too rich for me.

Another rich one is Dojo Toolkit. We can see one of its table features at dojox.grid.DataGrid. So is too rich.

Then, I found simple scripts:

I use the first one in Unguent. I do some modifications:

  • Use triangle instead of arrow
  • Enable clicking a <th> cell (instead of letters in a <th> cell)
  • Color change