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
- Host: GitHub
- URL: https://github.com/mikeludemann/sortingtable
- Owner: mikeludemann
- License: mit
- Created: 2018-04-18T11:34:14.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-18T13:46:43.000Z (almost 8 years ago)
- Last Synced: 2025-03-28T02:48:03.905Z (11 months ago)
- Topics: javascript, jquery, module-pattern, sorting
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
```