Skip to content

Commit

Permalink
fix: sort filter years (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshkhandeparkar committed Apr 19, 2024
1 parent e040ec0 commit 1fed6c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/SearchResults.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SearchResults: Component<Props> = (props) => {
const unique_years: Set<number> = new Set();

props.results.forEach((result) => unique_years.add(result.year));
setAvailableYears(Array.from(unique_years.values()));
setAvailableYears(Array.from(unique_years.values()).sort().reverse());

updateDisplayedResults();
})
Expand Down

0 comments on commit 1fed6c0

Please sign in to comment.