Changing asort() to usort()

This commit is contained in:
Steffen K9 2019-11-02 03:44:54 +01:00 committed by GitHub
parent fd5c122667
commit 7d51d45c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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',