How can I make a html table which the user can sort using the column headers to sort on the client side? I can load all rows' html data into a Javascript array and use dom to add a table to a content div but is it the right way? If you list major methods, I can find my way from there so, I'm not asking for code.
http://tinysort.sjeiti.com/ should be usefully
No need to reinvent the wheel in case you utilise a JS Framework already, but here are quite some nice solutions:
TableSort - http://www.frequency-decoder.com/demo/table-sort-revisited/
JQuery tablesorter - http://tablesorter.com/docs/#Demo
GridView3 - http://dev.sencha.com/playpen/ext-2.0/examples/grid/grid3.html
Stuart Langridge's Script - http://yoast.com/articles/sortable-table/
Mootools Mootable - http://joomlicious.com/mootable/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With