1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00

Fix for issue 89

Locations, OS and Providers now Alpha-Sorted correctly
This commit is contained in:
cp6 2023-03-20 10:37:28 +11:00
parent 39b9033bf8
commit c24056c511
3 changed files with 3 additions and 3 deletions

View File

@ -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();
});
}
}

View File

@ -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();
});
}
}

View File

@ -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();
});
}