mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +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){
|
json.nodes.sort(function(a, b){
|
||||||
if (a.type === b.type) {
|
if (a.type === b.type) {
|
||||||
if (a.uptime > b.uptime) {
|
if (a.uptime < b.uptime) {
|
||||||
return 1;
|
return 1;
|
||||||
} else if (a.uptime < b.uptime) {
|
} else if (a.uptime > b.uptime) {
|
||||||
return -1;
|
return -1;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue