Browse Source

sort servers by online first

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

7
src/Controller/MainController.php

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

Loading…
Cancel
Save