mirror of
https://github.com/friendica/friendica
synced 2024-12-23 17:20:16 +00:00
Merge pull request #7794 from AlfredSK/sorting-saved-folders-widget
Added usort() to the saved folders widget
This commit is contained in:
commit
ca5caa69f3
1 changed files with 4 additions and 0 deletions
|
@ -275,6 +275,10 @@ class Widget
|
||||||
$terms[] = ['ref' => $savedFolderName, 'name' => $savedFolderName];
|
$terms[] = ['ref' => $savedFolderName, 'name' => $savedFolderName];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
usort($terms, function ($a, $b) {
|
||||||
|
return strcmp($a['name'], $b['name']);
|
||||||
|
});
|
||||||
|
|
||||||
return self::filter(
|
return self::filter(
|
||||||
'file',
|
'file',
|
||||||
L10n::t('Saved Folders'),
|
L10n::t('Saved Folders'),
|
||||||
|
|
Loading…
Reference in a new issue