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:
parent
39b9033bf8
commit
c24056c511
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user