mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-19 09:38:36 +00:00
Fix for issue 89
Locations, OS and Providers now Alpha-Sorted correctly
This commit is contained in:
parent
39b9033bf8
commit
c24056c511
3 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue