diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2014-11-27 16:39:15 +0900 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2014-11-27 16:39:15 +0900 |
commit | 568eb5b0dc53b0bcf7e814b04086a93e941ada69 (patch) | |
tree | 792231622ac6928ecea7982b0b6c943ea119085e | |
parent | 2370655ea07eddb32e1fc8aaeefec1c5d99b3a2e (diff) | |
download | schoolclock-568eb5b0dc53b0bcf7e814b04086a93e941ada69.tar.gz |
fix class sorting by reversing it
-rw-r--r-- | js/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -46,9 +46,9 @@ var classes = [ function classesComparison(a, b) { if (a.points < b.points) - return -1; - if (b.points < a.points) return 1; + if (b.points < a.points) + return -1; return 0; } function sortClasses() |