diff --git a/src/api/GlobalApi.js b/src/api/GlobalApi.js index ed9b8da..6fc5c06 100644 --- a/src/api/GlobalApi.js +++ b/src/api/GlobalApi.js @@ -66,6 +66,7 @@ export default class GlobalApi { else if (response[srv]['player_count'] > 0) srvs.w.push(response[srv]); else srvs.e.push(response[srv]); } + srvs['w'].sort((s1,s2) => s2.player_now - s1.player_now); this.stats['servers'] = srvs; }) .catch(err => { diff --git a/src/components/TabsMenuElements/MainView/Components/SubComponents/ConnectButton.vue b/src/components/TabsMenuElements/MainView/Components/SubComponents/ConnectButton.vue index 5a24a6d..5cbc49b 100644 --- a/src/components/TabsMenuElements/MainView/Components/SubComponents/ConnectButton.vue +++ b/src/components/TabsMenuElements/MainView/Components/SubComponents/ConnectButton.vue @@ -1,6 +1,6 @@