Describe the bug
When an exam type filter (e.g., FAT) is selected while the papers are sorted by "Year (New to Old)", the filter does not apply correctly. Papers from other exam types (e.g., CAT-1, CAT-2) are still displayed alongside FAT papers, indicating that the filtering logic is either ignored or overridden by the sorting logic.
To Reproduce
Steps to reproduce the behavior:
- Go to the Papers page
- In the Filters panel, select an exam type (e.g., FAT)
- Enable sorting by clicking on "Year (New to Old)"
- Observe the list of papers
- Notice that papers from other exam types (CAT-1, CAT-2, etc.) are still visible
Expected behavior
Only papers corresponding to the selected exam type (e.g., FAT) should be displayed after applying the filter, regardless of the sorting order.
Screenshots
Attached screenshot shows FAT selected, but papers from CAT-1 and CAT-2 are still visible.

Desktop (please complete the following information):
- OS: Arch Linux
- Browser: Firefox
- Version: 149.0
Smartphone (please complete the following information):
N/A
Additional context
This appears to be an issue with filter and sort state interaction. Likely causes include:
- Filter state not being reapplied after sorting
- Sorting logic overriding filtered dataset instead of operating on it
- UI state reflecting selected filters, but backend/query not respecting them
Describe the bug
When an exam type filter (e.g., FAT) is selected while the papers are sorted by "Year (New to Old)", the filter does not apply correctly. Papers from other exam types (e.g., CAT-1, CAT-2) are still displayed alongside FAT papers, indicating that the filtering logic is either ignored or overridden by the sorting logic.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Only papers corresponding to the selected exam type (e.g., FAT) should be displayed after applying the filter, regardless of the sorting order.
Screenshots

Attached screenshot shows FAT selected, but papers from CAT-1 and CAT-2 are still visible.
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
Additional context
This appears to be an issue with filter and sort state interaction. Likely causes include: