Sorted Table

Tables can be sorted automatically or manually by moving rows. To start using SortedTable all you need is: * have a valid XHTML document, * have a valid table* in this document * download the following javascripts to a folder on your server: Event.js and SortedTable.js * add a class="sorted" to the table * include the javascripts in the html (<script type="text/javascript" src="Event.js"></script> and <script type="text/javascript" src="SortedTable.js"></script>) * add the following code to the html <script type="text/javascript">onload = function() {var myTable = new SortedTable();}</script> * if you're using XML Data Islands add class regroup (you should have class="sorted regroup")

Sorted Table demo

Changes to the code below will update the demo above in real time.



Oct. 4, 2007, 10:22 a.m. - Miroslav

Hmm, very fastly

March 11, 2008, 11:35 a.m. - Mandy

How good is it with disability softwares?

Sept. 1, 2008, 3:58 a.m. - lolo_fr

wow, c'est un truc de ouf :) [so great]

Nov. 26, 2008, 9:30 a.m. - loser

looks like shit

Nov. 26, 2008, 9:31 a.m. - loser

looks like shit

Nov. 26, 2008, 9:35 a.m. - loser

looks like shit

April 8, 2009, 8:22 a.m. - Itz_ajax

works well.

Nov. 17, 2009, 4:45 a.m. - Rogier

Thanks for the hard work!

Dec. 23, 2009, 3 a.m. - dev

not working with big tables i havae a table of 140 000 rows

Feb. 22, 2010, 10:07 p.m. - Fahad

DUDE I WANT TO TEXT FIELD NUMERIC VALUE SORTING.YOUR EXAMPLE NEVER SORT .PLZ TEL ME FOR EXAMPLE: <td><input value="1511" size="6" type="text"></td>

Oct. 22, 2010, 8:34 a.m. - Investigatore

No working on my page ??

Nov. 7, 2011, 2:38 p.m. - Daze

It work form me greatly! For sure u need to download all the files like CSS, JavaScript, by accesing them by url directly and save them. It work after a few modification to reflect my data and Bang! It works! But now I have a problem with other pages even if I apply the same cooking! Thanks for your works!

Feb. 12, 2013, 9:35 a.m. - Filippo

Hi, it's very good, but it may be perfect if in the field there was an arrow to indicate the orientation of the sorting! Thanks, Filippo