Alphanumeric order for Track Types in dropdown menu
This commit is contained in:
parent
c4a79d8d3e
commit
febbe6233a
4 changed files with 20 additions and 0 deletions
|
@ -14,6 +14,11 @@
|
|||
$used = $disk->totalSpace-$disk->totalFreeSpace;
|
||||
$total = $disk->totalSpace;
|
||||
$tracktypes = Application_Model_Tracktype::getTracktypes();
|
||||
|
||||
array_multisort(array_map(function($element) {
|
||||
return $element['type_name'];
|
||||
}, $tracktypes), SORT_ASC, $tracktypes);
|
||||
|
||||
if(count($tracktypes) == 0) {
|
||||
$hasTracktypes = "disabled";
|
||||
$showTracktypesDropdown = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue