From 65d858c1cac32a20aaa75f8d5e34e2ac4bdd7217 Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 29 Dec 2023 12:17:00 +0000 Subject: [PATCH] [autocomplete] when tags have the same number of uses, sort by name --- ext/autocomplete/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/autocomplete/main.php b/ext/autocomplete/main.php index 2ac596ac..25d779b1 100644 --- a/ext/autocomplete/main.php +++ b/ext/autocomplete/main.php @@ -64,7 +64,7 @@ class AutoComplete extends Extension WHERE LOWER(tag) LIKE LOWER(:search) -- OR LOWER(tag) LIKE LOWER(:cat_search) AND count > 0 - ORDER BY count DESC + ORDER BY count DESC, tag ASC $limitSQL ", $SQLarr