Minimal Table Sorting Library – sorTable.js

Category: Javascript , Table | November 12, 2016
Views Total:6,322 views
Official Page:Go to website
Last Update:November 12, 2016


Minimal Table Sorting Library – sorTable.js


sorTable.js is an extremely light JavaScript library used to sort table rows by alphabet and number without any dependencies.

How to use it:

Add the sorTable’s JS and CSS files to the html page.

<link rel="stylesheet" href="css/sorTable.css">
<script src="js/sorTable.js"></script>

Add the CSS class ‘sortable’ to your existing html table and done. Note that your html table must have ‘thead’ and ‘tbody’ elements.

<table class="sortable">

That’s it. Click on the table header to sort the table rows.

You Might Be Interested In:

One thought on “Minimal Table Sorting Library – sorTable.js

Leave a Reply