mirror of
https://github.com/YGGverse/HLState.git
synced 2026-03-31 17:15:39 +00:00
sort servers by online first
This commit is contained in:
parent
d1781d9300
commit
f61487cc9f
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue