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
|
public static function allLocations(): array
|
||||||
{
|
{
|
||||||
return Cache::remember("locations", now()->addMonth(1), function () {
|
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
|
public static function allOS(): array
|
||||||
{
|
{
|
||||||
return Cache::remember("operating_systems", now()->addMonth(1), function () {
|
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
|
public static function allProviders(): array
|
||||||
{
|
{
|
||||||
return Cache::remember("providers", now()->addMonth(1), function () {
|
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