fix sort for node uptime

This commit is contained in:
Stephen Birarda 2015-08-19 18:31:42 -07:00
parent 2738f65c10
commit b386a95d08

View file

@ -9,9 +9,9 @@ $(document).ready(function(){
json.nodes.sort(function(a, b){
if (a.type === b.type) {
if (a.uptime > b.uptime) {
if (a.uptime < b.uptime) {
return 1;
} else if (a.uptime < b.uptime) {
} else if (a.uptime > b.uptime) {
return -1;
} else {
return 0;