Fix sorting. I shouldn't be allowed to code before my third cup of coffee in the morning

refactor
Matt Godbolt 11 years ago
parent eae7d30646
commit beeaca66e0

@ -210,7 +210,7 @@ function getCompilers(req, res) {
},
function (err, all) {
all = all.filter(function(x){return x!=null;});
all.sort(function(x,y){return x.version < y.version ? -1 : x.version > y.version > 1 ? 1 : 0;});
all = all.sort(function(x,y){return x.version < y.version ? -1 : x.version > y.version ? 1 : 0;});
res.end(JSON.stringify(all));
}
);

Loading…
Cancel
Save