diff --git a/README.md b/README.md index 2306dcb..757ae1e 100644 --- a/README.md +++ b/README.md @@ -5,16 +5,22 @@ enhanced fork of http://kryogenix.org/code/browser/sorttable/ sorttable allows HTML tables to be sorted by Javascript when clicked on a column header. It supports multiple data formats and even custom sort data #### documentation -refer to [original site](http://kryogenix.org/code/browser/sorttable/) for full documentation and examples.
-**Note: the custom sort attribute "sorttable_customkey" got replaced by "data-st-key" to be HTML5 conform.**
-For simple examples, see [my example](https://cdn.rawgit.com/White-Tiger/sorttable.js/master/docs/example.html) page. +For some usage examples and functionality tests, see [my example page](https://cdn.rawgit.com/White-Tiger/sorttable.js/master/docs/example.html). +*(refer to [original site](http://kryogenix.org/code/browser/sorttable/) for original documentation and examples)* -#### changes compared to original sorttable -* made it conform to HTML5 specs (no more errors just because you use sorttable! Now validates to w3c)
+#### changes compared to original sorttable v2 +* now conforms to HTML5 specs (no more errors just because you use sorttable! Now validates to w3c) *This is an incompatible change if "sorttable_customkey" was used* +* fixed support of dynamic tables. Can now adapt to changes on a table +* improved IE compatibility +* most major initialization is delayed until user wants to sort a table. sorttable.js has now less impact on page load +* fixed detection of dates in format dd.mm.yyyy as numeric +* enhanced numeric sort with newly added decimal comma support (though it slowed down the detection progress) +* supports multiple "tbody" tags and allows to place additional headers in-between * sorttable's up/down arrow used to have the ID #sorttable_sortfwdind and #sorttable_sortrevind. It no longer uses an element ID but a class instead, .sorttable_sortfwdind and .sorttable_sortrevind respectively. +* sorttable's up/down arrow were upside down, so it used to be big-to-small if we sorted ascending which is wrong * removed Sorttable v1 compatibility with use of "sortbottom" class * fixed Javascript errors and warnings diff --git a/sorttable.js b/sorttable.js index 6cb9a6e..31ee198 100644 --- a/sorttable.js +++ b/sorttable.js @@ -1,10 +1,10 @@ (function(){'use strict'; -/*jshint bitwise: false*/ +/*jshint -W069, bitwise: false*/ /* SortTable - version 2e2 (enhanced) - 7th April 2007 (20th February 2015) - Stuart Langridge, http://www.kryogenix.org/code/browser/sorttable/ + version 2e3 (enhanced) + 7th April 2007 (17th April 2015) + https://github.com/White-Tiger/sorttable.js Instructions: Download this file