]> git.mxchange.org Git - friendica.git/commitdiff
Changing asort() to usort()
authorSteffen K9 <alfred@skrumbholz.de>
Sat, 2 Nov 2019 02:44:54 +0000 (03:44 +0100)
committerGitHub <noreply@github.com>
Sat, 2 Nov 2019 02:44:54 +0000 (03:44 +0100)
src/Content/Widget.php

index d355c723ec84bceff18e7c802f83121e0efb79cd..5878bc75d22f7e88a73708d6920215bbb58c647a 100644 (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',