From 982d91345dea9f9d0eb4804d9b522124878c7978 Mon Sep 17 00:00:00 2001 From: Pontoporeia Date: Wed, 24 Jun 2026 11:28:20 +0200 Subject: [PATCH] Sort keywords column: matched entries first, then unmatched, both alphabetical MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When filters are active, viable (matched) keywords now appear at the top of the Mots-clés column so users don't have to scroll past faded entries to find clickable tags. Both groups maintain alphabetical order internally. --- app/templates/partials/repertoire-index.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/templates/partials/repertoire-index.php b/app/templates/partials/repertoire-index.php index 5f38795..d721e35 100644 --- a/app/templates/partials/repertoire-index.php +++ b/app/templates/partials/repertoire-index.php @@ -111,6 +111,12 @@ foreach ($filterColumns as $col) {
+ ($b['matched'] <=> $a['matched']) ?: strcasecmp($a['value'], $b['value']) +); + // Render filter columns in the correct left-to-right order. // Students column (non-filter) is inserted between keywords and AP/or/fi/years. $renderOrder = ['years', 'ap', 'or', 'fi', 'students', 'kw'];