From 9ea2a5067fc4b75de395f381577b18914132ad84 Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 5 Jun 2024 15:10:55 +0200 Subject: [PATCH] Order towns by id --- system/src/Towns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Towns.php b/system/src/Towns.php index e8a24359fd..6b02d41bce 100644 --- a/system/src/Towns.php +++ b/system/src/Towns.php @@ -124,6 +124,6 @@ public static function getFromOTBM() */ public static function getFromDatabase() { - return Town::pluck('name', 'id')->toArray(); + return Town::orderBy('id', 'ASC')->pluck('name', 'id')->toArray(); } }