Merge pull request #7794 from AlfredSK/sorting-saved-folders-widget
Added usort() to the saved folders widget
This commit is contained in:
commit
ca5caa69f3
|
@ -275,6 +275,10 @@ class Widget
|
|||
$terms[] = ['ref' => $savedFolderName, 'name' => $savedFolderName];
|
||||
}
|
||||
|
||||
usort($terms, function ($a, $b) {
|
||||
return strcmp($a['name'], $b['name']);
|
||||
});
|
||||
|
||||
return self::filter(
|
||||
'file',
|
||||
L10n::t('Saved Folders'),
|
||||
|
|
Loading…
Reference in a new issue