An open API service indexing awesome lists of open source software.

https://github.com/mikeludemann/sortingtable

A sorting function for tables
https://github.com/mikeludemann/sortingtable

javascript jquery module-pattern sorting

Last synced: 4 months ago
JSON representation

A sorting function for tables

Awesome Lists containing this project

README

          

# sortingTable

A simple sorting function for tables

## Examples

```code
1. Module (JavaScript with JQuery)

sorting.table(mainElement, subElement, sortingElement, clickElement, index);

1.1. With Parameter

sorting.table("table", "tr", "td", "th", 0);

2. Function with JQuery

sortingTable(mainElement, subElement, sortingElement, index);

2.1. With Parameter

// Use this in an event method

sortingTable("table", "tr", "td", 0);

3. Function - Native

sortTable(table, rows, column, index);

3.1. With Parameter

// Use this in an event method

sortingTable("table", "tr", "td", 0);

```