Добавлена сортировка по имени организации
Some checks failed
Build and Push Docker Image / test (push) Failing after 3s
Build and Push Docker Image / build (push) Has been cancelled

This commit is contained in:
brusnitsyn
2026-02-27 15:35:50 +09:00
parent 5c7d1816e7
commit 988ef6f519

View File

@@ -9,7 +9,7 @@ class OrgController extends Controller
{
public function index()
{
$orgs = Org::all(['id', 'name', 'code']);
$orgs = Org::orderBy('name')->get(['id', 'name', 'code']);
return response()->json($orgs);
}