简体   繁体   中英

jquery tablesorter plugin with mixed date format not working in IE/Safari, does work in FF,O,C

Not sure what the exact issue is..basically, am using the tablesorter jquery plugin, trying to sort with 2 different types of date format listings in the column. I need the end result to be a chronological sort (obviously), just like it's doing in FF now. Any insight is greatly appreciated.

http://developer.erg.com/~bzaks/test2.html

One of the nice things about the tablesorter plugin is that is will evaluate the column data and pick the best parser. Mixed date formats will still get parsed as dates.

Check out this jsFiddle and see how the Date column works.

Debugging the sort shows that the dates get parsed by the usLongDate parser, and that parser parses and converts the date string to a time integer to sort it correctly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM