[autocomplete] when tags have the same number of uses, sort by name

This commit is contained in:
Shish 2023-12-29 12:17:00 +00:00
parent d82df9d7d8
commit 65d858c1ca

View file

@ -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