Change sort order for applist

This commit is contained in:
Kode 2018-11-05 21:03:42 +00:00
parent 4b2bbe0614
commit e8e4cbfd41

View file

@ -40,7 +40,7 @@ class Application extends Model
public static function applist()
{
$list = [];
$all = self::orderBy('name')->get();
$all = self::orderBy('name')->get()->sortBy('name', SORT_NATURAL|SORT_FLAG_CASE);
$list['null'] = 'None';
foreach($all as $app) {
$name = $app->name;