Minimalist Table Sort Library – sorttable.js

Category: Javascript , Table | April 7, 2023
Author:stuartlangridge
Views Total:635 views
Official Page:Go to website
Last Update:April 7, 2023
License:MIT

Preview:

Minimalist Table Sort Library – sorttable.js

Description:

sorttable.js is a dead simple table sort JS library that adds sorting capabilities to your HTML tables. Supports multiple data types, including dates, numbers, and text.

It intelligently detects the data type within each column and allows users to sort data by clicking on the table headers.

How to use it:

1. Download the zip and add the sorttable.js library to the page.

<script src="sorttable.js"></script>

2. Add the CSS class “sortable” to any HTML table you’d like to make sortable.

<table class="sortable">
  ...
</table>

3. Click on the headers to sort the table.

You Might Be Interested In:


Leave a Reply