mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-08-10 07:11:18 +02:00
fix: sort repertoire Années column reverse chronological (newest first)
This commit is contained in:
@@ -46,4 +46,4 @@
|
|||||||
- [x] Wider heading scale (h1/h2/h3) for apropos/licence/charte pages: step-5 / step-3 / step-1
|
- [x] Wider heading scale (h1/h2/h3) for apropos/licence/charte pages: step-5 / step-3 / step-1
|
||||||
- [x] Masquer le bloc "Durée" sur la page TFE quand aucune durée n'est encodée (ni pages ni minutes)
|
- [x] Masquer le bloc "Durée" sur la page TFE quand aucune durée n'est encodée (ni pages ni minutes)
|
||||||
- [x] Fix: locked_year cleared on edit — edit dialog didn't populate the field, so any edit cleared the locked academic year
|
- [x] Fix: locked_year cleared on edit — edit dialog didn't populate the field, so any edit cleared the locked academic year
|
||||||
- [x] Consistent scrollbar styling across browsers (WebKit/Blink/Firefox): custom properties in colors.css, unified rules in base.css, removed redundant declarations
|
- [x] Fix repertoire Années column: sort reverse chronological (newest first) instead of ascending alpha
|
||||||
|
|||||||
@@ -115,7 +115,8 @@ foreach ($filterColumns as $col) {
|
|||||||
// viable entries at the top so users don't have to scroll past faded ones.
|
// viable entries at the top so users don't have to scroll past faded ones.
|
||||||
$sortMatchedFirst = fn($a, $b) =>
|
$sortMatchedFirst = fn($a, $b) =>
|
||||||
($b['matched'] <=> $a['matched']) ?: strcasecmp($a['value'], $b['value']);
|
($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['ap_programs'], $sortMatchedFirst);
|
||||||
usort($repData['orientations'], $sortMatchedFirst);
|
usort($repData['orientations'], $sortMatchedFirst);
|
||||||
usort($repData['finality_types'], $sortMatchedFirst);
|
usort($repData['finality_types'], $sortMatchedFirst);
|
||||||
|
|||||||
Reference in New Issue
Block a user