프로그래밍/Script
[javascript] Tablesort: A simple sorting component for tables
홍반장水_
2013. 9. 25. 09:20
반응형
Tablesort: A simple sorting component for tables
Tablesort makes it easy to add a sorting component to your tables. It’s dependency free and written in JavaScript, but includes optional Ender support.
Tablesort is a small & simple sorting component for tables written in Javascript. It has no dependencies and should have no interference with other libraries.
Basic usage
<script src='tablesort.min.js'></script>
<script>
new Tablesort(document.getElementById('table-id'));
</script>
Sort Types
- strings
- numbers
- currency
- Basic dates in
dd/mm/yy
ordd-mm-yy
format. Years can be 4 digits. Days and Months can be 1 or 2 digits.
반응형