Skip to content

Commit

Permalink
Order towns by id
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed Jun 5, 2024
1 parent ec96985 commit 9ea2a50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/src/Towns.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit 9ea2a50

Please sign in to comment.