Skip to content

Commit

Permalink
feat: sort by year descending before fuzzy searching
Browse files Browse the repository at this point in the history
Fixes #101
  • Loading branch information
harshkhandeparkar committed Nov 11, 2024
1 parent e3a1e5d commit b89e947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/db/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub fn get_qp_search_query(exam_filter: ExamFilter) -> (String, bool) {
(
format!("
WITH filtered AS (
SELECT * from iqps {exam_filter}
SELECT * from iqps {exam_filter} ORDER BY year DESC
),
fuzzy AS (
SELECT id,
Expand Down

0 comments on commit b89e947

Please sign in to comment.