proportions: sort firmware based on version

This commit is contained in:
Nils Schneider 2015-07-08 10:06:43 +02:00
commit aeae866998
2 changed files with 63 additions and 3 deletions

View file

@ -1,5 +1,5 @@
define(["chroma-js", "virtual-dom", "numeral-intl"],
function (Chroma, V, numeral) {
define(["chroma-js", "virtual-dom", "numeral-intl", "vercomp" ],
function (Chroma, V, numeral, vercomp) {
return function (config) {
var self = this
@ -128,7 +128,7 @@ define(["chroma-js", "virtual-dom", "numeral-intl"],
})
fillTable(statusTable, statusDict.sort(function (a, b) { return b[1] - a[1] }))
fillTable(fwTable, fwDict.sort(function (a, b) { return b[1] - a[1] }))
fillTable(fwTable, fwDict.sort(function (a, b) { return vercomp(b[0], a[0]) }))
fillTable(hwTable, hwDict.sort(function (a, b) { return b[1] - a[1] }))
fillTable(geoTable, geoDict.sort(function (a, b) { return b[1] - a[1] }))
fillTable(autoTable, autoDict.sort(function (a, b) { return b[1] - a[1] }))