mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
fix sort for node uptime
This commit is contained in:
parent
2738f65c10
commit
b386a95d08
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue