From f9f37fc637a099e70c1eff9452505203c9377745 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 25 Jun 2023 21:56:02 +0000 Subject: [PATCH] Tag::implode should sort case-insensitively --- core/imageboard/tag.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/imageboard/tag.php b/core/imageboard/tag.php index db251823..f81dd5c0 100644 --- a/core/imageboard/tag.php +++ b/core/imageboard/tag.php @@ -124,10 +124,8 @@ class Tag public static function implode(array $tags): string { - sort($tags); - $tags = implode(' ', $tags); - - return $tags; + sort($tags, SORT_FLAG_CASE|SORT_STRING); + return implode(' ', $tags); } /**