mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 19:20:09 +01:00
fix: sort repertoire Années column reverse chronological (newest first)
This commit is contained in:
1 parent
dae97ab812
commit
b9c7d6c663
2 files changed
+3
-2
No files matched your search
@@ -115,7 +115,8 @@ foreach ($filterColumns as $col) {
|
||||
// viable entries at the top so users don't have to scroll past faded ones.
|
||||
$sortMatchedFirst = fn($a, $b) =>
|
||||
($b['matched'] <=> $a['matched']) ?: strcasecmp($a['value'], $b['value']);
|
||||
usort($repData['years'], $sortMatchedFirst);
|
||||
usort($repData['years'], fn($a, $b) =>
|
||||
($b['matched'] <=> $a['matched']) ?: ($b['value'] <=> $a['value']));
|
||||
usort($repData['ap_programs'], $sortMatchedFirst);
|
||||
usort($repData['orientations'], $sortMatchedFirst);
|
||||
usort($repData['finality_types'], $sortMatchedFirst);
|
||||
|
||||
Reference in new issue
Block a user