(bug 39296) Fix broken table sorting
Javascript's Array.sort wants -1, 0, or 1. Not false, true, or 0. Change-Id: I2cb73668793092b53be0c1c6f7ffc647a88bf30a
This commit is contained in:
parent
8589f2ecad
commit
20d098cfb3
1 changed files with 2 additions and 2 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue