Sort server vars for front end

This commit is contained in:
notCharles 2024-05-10 21:31:32 -04:00
parent d656f21cd9
commit 44cc5a8132

View File

@ -31,7 +31,7 @@ class StartupController extends ClientApiController
$startup = $this->startupCommandService->handle($server);
return $this->fractal->collection(
$server->variables()->where('user_viewable', true)->get()
$server->variables()->orderBy('sort')->where('user_viewable', true)->get()
)
->transformWith($this->getTransformer(EggVariableTransformer::class))
->addMeta([