Skip to content

Commit

Permalink
updated version and README.md for release
Browse files Browse the repository at this point in the history
  • Loading branch information
White-Tiger committed Apr 29, 2015
1 parent b425421 commit 96c1d2e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. <br>
**Note: the custom sort attribute "sorttable_customkey" got replaced by "data-st-key" to be HTML5 conform.** <br>
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) <br>
#### 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

Expand Down
8 changes: 4 additions & 4 deletions sorttable.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

1 comment on commit 96c1d2e

@jitbit
Copy link

@jitbit jitbit commented on 96c1d2e Jun 27, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work, sorttable needed a facelift long time ago

Please sign in to comment.