Browse Source

sort servers by online first

main
ghost 10 months ago
parent
commit
f61487cc9f
  1. 7
      src/Controller/MainController.php

7
src/Controller/MainController.php

@ -33,7 +33,12 @@ class MainController extends AbstractController @@ -33,7 +33,12 @@ class MainController extends AbstractController
// Collect servers info
$servers = [];
foreach ((array) $entityManagerInterface->getRepository(Server::class)->findAll() as $server)
foreach ((array) $entityManagerInterface->getRepository(Server::class)->findBy(
[],
[
'online' => 'desc'
]
) as $server)
{
// Init defaults
$status = false;

Loading…
Cancel
Save