diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/script.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/script.js b/data/script.js index f76a862..84cb562 100644 --- a/data/script.js +++ b/data/script.js @@ -15,7 +15,7 @@ $(document).ready (function () { items.detach ().sort (function (nodeA, nodeB) { var a = $(nodeA).data (by); var b = $(nodeB).data (by); - if (by == 'rank') { + if (by == 'rank' || by == 'year') { a = parseFloat (a); b = parseFloat (b); return a > b ? 1 : (a < b ? -1 : 0); |