Merge "(bug 39296) Fix broken table sorting"
authorCatrope <roan.kattouw@gmail.com>
Mon, 13 Aug 2012 20:01:40 +0000 (20:01 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 13 Aug 2012 20:01:40 +0000 (20:01 +0000)
resources/jquery/jquery.tablesorter.js

index f28f401..21dc3e1 100644 (file)
        }
 
        function sortText( a, b ) {
-               return ( (a < b) ? false : ((a > b) ? true : 0) );
+               return ( (a < b) ? -1 : ((a > b) ? 1 : 0) );
        }
 
        function sortTextDesc( a, b ) {
-               return ( (b < a) ? false : ((b > a) ? true : 0) );
+               return ( (b < a) ? -1 : ((b > a) ? 1 : 0) );
        }
 
        function multisort( table, sortList, cache ) {