NOTE!
- This demo is showing all of the built-in parsers (included with tablesorter's core).
- Additional parsers are available, but must be loaded after the core.
- Or, you have the option of writing a custom parser by using the
addParser
function. - The built-in
metadata
parser requires the metadata plugin; maintained for backwards compatibility. An example is not included in this demo.
Demo
"no-parser" will not sort |
"text" | "digit" | "currency" | "url" | "isoDate" | "percent" | "image" | "usLongDate" | "shortDate" (mmddyyyy) |
"shortDate" (ddmmyyyy) |
"shortDate" (yyyymmdd) |
"time" |
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | abc | 02 | $10.00 | https://google.com | 2018-07-26 | 9.8% | Jul 6, 2006 8:14 AM | 12-31-2017 | 31-12-2017 | 2017-12-31 | 10:00 PM | |
4 | xyz | 04 | $9.99 | https://yahoo.com | 2017-07-24 | 9.9% | Dec 10, 2002 5:14 AM | 12.11.2017 | 11.12.2017 | 2017.12.11 | 10:23 AM | |
2 | def | 03 | $01.99 | https://github.com | 2018-08-24 | 10% | Jan 18, 2007 9:12 AM | 12/16/2017 | 16/12/2017 | 2017/12/16 | 10:04 PM | |
3 | hij | 01 | $00.99 | https://gitlab.com | 2018-07-28 | 1% | Jul 6, 2006 8:14 AM | 12-04.2017 | 4/12 2017 | 2017, 12 4 | 9:56 PM |
Javascript
Page Header
<link href="css/theme.blue.css" rel="stylesheet"> <script src="js/jquery.tablesorter.js"></script>