Skip to content

iagopaixao/sortTable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Sort Table

sortTable is a simple JS script to sort data from an HTML table in an Ascending and Descending way. You can use it to sort names, numbers, dates, and currency.

How to use

Add the sortTable.js to the <head> of your HTML file. It's necessary that your project is using jQuery. In its HTML file it makes a call to sortTable.js as follows:

jQuery(document).ready(function() {
    var table = new ScriptOrderTable();
    table.queryTableColumns('#myTable', 'thead td a');
});

See the sortTableExample.html file for an example of how to use the script.

About

Sort an ascending and descending table with HTML and JS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published