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

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