From: Steffen K9 Date: Sat, 2 Nov 2019 02:44:54 +0000 (+0100) Subject: Changing asort() to usort() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7d51d45c1789eeecbaaac3add0abf82d64772a8a;p=friendica.git Changing asort() to usort() --- diff --git a/src/Content/Widget.php b/src/Content/Widget.php index d355c723ec..5878bc75d2 100644 --- a/src/Content/Widget.php +++ b/src/Content/Widget.php @@ -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',