diff --git a/app/Models/Locations.php b/app/Models/Locations.php index 7f3b131..34adb3f 100644 --- a/app/Models/Locations.php +++ b/app/Models/Locations.php @@ -20,7 +20,7 @@ class Locations extends Model public static function allLocations(): array { return Cache::remember("locations", now()->addMonth(1), function () { - return DB::table('locations')->get()->toArray(); + return DB::table('locations')->orderBy('name')->get()->toArray(); }); } } diff --git a/app/Models/OS.php b/app/Models/OS.php index 506a80c..d5e9e77 100644 --- a/app/Models/OS.php +++ b/app/Models/OS.php @@ -20,7 +20,7 @@ class OS extends Model public static function allOS(): array { return Cache::remember("operating_systems", now()->addMonth(1), function () { - return DB::table('os')->get()->toArray(); + return DB::table('os')->orderBy('name')->get()->toArray(); }); } } diff --git a/app/Models/Providers.php b/app/Models/Providers.php index 00ee1d9..d57dc2f 100644 --- a/app/Models/Providers.php +++ b/app/Models/Providers.php @@ -20,7 +20,7 @@ class Providers extends Model public static function allProviders(): array { return Cache::remember("providers", now()->addMonth(1), function () { - return DB::table('providers')->get()->toArray(); + return DB::table('providers')->orderBy('name')->get()->toArray(); }); }