dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8589f2e
)
(bug 39296) Fix broken table sorting
author
Brad Jorsch
<anomie.wikipedia@gmail.com>
Mon, 13 Aug 2012 14:12:57 +0000
(10:12 -0400)
committer
Catrope
<roan.kattouw@gmail.com>
Mon, 13 Aug 2012 19:58:57 +0000
(12:58 -0700)
Javascript's Array.sort wants -1, 0, or 1. Not false, true, or 0.
Change-Id: I2cb73668793092b53be0c1c6f7ffc647a88bf30a
resources/jquery/jquery.tablesorter.js
patch
|
blob
|
history
diff --git
a/resources/jquery/jquery.tablesorter.js
b/resources/jquery/jquery.tablesorter.js
index
f28f401
..
21dc3e1
100644
(file)
--- a/
resources/jquery/jquery.tablesorter.js
+++ b/
resources/jquery/jquery.tablesorter.js
@@
-330,11
+330,11
@@
}
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 ) {