| commit | b522c6d14dcb9d7d1693c375c1753b6a37b75eeb | [log] [tgz] |
|---|---|---|
| author | j <[email protected]> | Fri Apr 26 19:10:15 2019 -0700 |
| committer | GitHub <[email protected]> | Fri Apr 26 19:10:15 2019 -0700 |
| tree | 00e77ab71ef3f035c32a940a1dd594a8e3c3b3ab | |
| parent | 810c1bc2386d49a58e31d3d49f915ad16d63622e [diff] |
fix sorting?
diff --git a/init.js b/init.js index 22b7037..fbfd305 100644 --- a/init.js +++ b/init.js
@@ -766,8 +766,8 @@ revisable.sort(function(a, b){ var keyA = a.rv, keyB = b.rv; - if(keyA < keyB) return -1; - if(keyA > keyB) return 1; + if(keyA > keyB) return -1; + if(keyA < keyB) return 1; return 0; }); if (!((dtps.classes[num].weights[i].weight.toUpperCase().includes("SUCCESS")) || (dtps.classes[num].weights[i].weight.toUpperCase().includes("SS")))) {