Changing asort() to usort()
This commit is contained in:
parent
fd5c122667
commit
7d51d45c17
1 changed files with 3 additions and 1 deletions
|
@ -275,7 +275,9 @@ class Widget
|
|||
$terms[] = ['ref' => $savedFolderName, 'name' => $savedFolderName];
|
||||
}
|
||||
|
||||
asort($terms);
|
||||
usort($terms, function ($a, $b) {
|
||||
return strcmp($a['name'], $b['name']);
|
||||
});
|
||||
|
||||
return self::filter(
|
||||
'file',
|
||||
|
|
Loading…
Reference in a new issue