Sorting HTML Tables Using Javascript

Visit Publisher Site
Get Sorting HTML Tables Using Javascript Hosting

Sponsored by TMDHosting

This JavaScript code can be used to convert tables in ordinary HTML into sortable ones by associating each title column with an onClick event to automatically sort the data rows. No additional coding is necessary. All you need to do is give your table an ID field, include the sortTable.js file and call initTable in your document's onLoad method.

Visit publisher site: Sorting HTML Tables Using Javascript
  • Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose
    Rated 4.38 out of 5 (15 ratings)
  • 3 Member Reviews
  • Views: 6,357
  • Price: Free

Listing Details

Filed in:
Scripts / JavaScript / Scripts & Programs / Miscellaneous
Submitted on:
Last Updated:
Other listings by this publisher

License & Pricing Information

User Reviews 

Add/Edit Your Review
Average Member Rating: 4.38/5

Displaying 1-3 out of 3 reviews

  • This works very well for me, so far. I found it quite easy to use, and had no problem making minor modifications (color schemes for example). Very nice.

  • The author provided 3 versions, two work but are too slow (noticeably slow for tables with just 3 rows, quite slow for table with 40 rows even on powerful computers, unusable for table with a couple hundred rows). The 3rd version did not work, and I found it still quite slow after bug fixing that got it going. This version also lacks multi-table support and will not work for even slightly complicated cell content like hyperlinks. So all 3 versions are not usable for anything but small tables.

  • a good idea would be to keep the formating for cells.

See all 3 reviews for Sorting HTML Tables Using Javascript