sort airports in drop down
This commit is contained in:
@@ -28,7 +28,7 @@ class AirportRepository extends BaseRepository implements CacheableInterface
|
|||||||
public function selectBoxList($add_blank=false): array
|
public function selectBoxList($add_blank=false): array
|
||||||
{
|
{
|
||||||
$retval = [];
|
$retval = [];
|
||||||
$items = $this->all();
|
$items = $this->orderBy('icao', 'asc')->all();
|
||||||
|
|
||||||
if ($add_blank) {
|
if ($add_blank) {
|
||||||
$retval[''] = '';
|
$retval[''] = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user