diff --git a/TODO.md b/TODO.md index 01a14dc..3db43b3 100644 --- a/TODO.md +++ b/TODO.md @@ -5,3 +5,4 @@ - [x] Fix student name popover overflowing below viewport: clamp position so popover stays within screen bounds - [x] Fix orientation (and other filter) metadata links on TFE page leading to empty search: remove redundant `query=` param - [x] Fix language metadata link using wrong `query=` param instead of dedicated `language=` filter +- [x] Sort TFE files by display category on public page (note d'intention → TFE → image → video → audio → website → annexes) diff --git a/app/src/Controllers/TfeController.php b/app/src/Controllers/TfeController.php index a574f2a..123594f 100644 --- a/app/src/Controllers/TfeController.php +++ b/app/src/Controllers/TfeController.php @@ -92,9 +92,16 @@ class TfeController // If access is restricted and user doesn't have valid access, hide files $shouldHideFiles = ($restrictedEnabled && $accessTypeId === 2 && !$hasRestrictedAccess); - // Caption (WebVTT) files — N-th VTT is paired with the N-th