From 7d51d45c1789eeecbaaac3add0abf82d64772a8a Mon Sep 17 00:00:00 2001 From: Steffen K9 Date: Sat, 2 Nov 2019 03:44:54 +0100 Subject: [PATCH] Changing asort() to usort() --- src/Content/Widget.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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', -- 2.39.5