Permalink
Browse files

Make sure that empty cells always finish last!

Also used ant to build the .min.js
  • Loading branch information...
ingydotnet committed Jan 18, 2011
1 parent 6ee2d67 commit 99b8702a7b444c02d301d27137273d080624bac4
Showing with 2 additions and 2 deletions.
  1. +1 −1 jquery.tablesorter.js
  2. +1 −1 jquery.tablesorter.min.js
View
@@ -464,7 +464,7 @@
};
function sortText(a,b) {
- return ((a < b) ? -1 : ((a > b) ? 1 : 0));
+ return !a.length ? 1 : !b.length ? -1 : ((a < b) ? -1 : ((a > b) ? 1 : 0));
};
function sortTextDesc(a,b) {
Oops, something went wrong.

0 comments on commit 99b8702

Please sign in to comment.