Remove score sorting constraint (#19501)

Do not require a score filter to be applied in order to sort by object score.
This commit is contained in:
Josh Hawkins
2025-08-16 08:08:11 -05:00
committed by GitHub
parent 2cde58037d
commit 89db960c05
2 changed files with 16 additions and 10 deletions

View File

@@ -131,10 +131,7 @@ export default function SearchFilterGroup({
);
const availableSortTypes = useMemo(() => {
const sortTypes = ["date_asc", "date_desc"];
if (filter?.min_score || filter?.max_score) {
sortTypes.push("score_desc", "score_asc");
}
const sortTypes = ["date_asc", "date_desc", "score_desc", "score_asc"];
if (filter?.min_speed || filter?.max_speed) {
sortTypes.push("speed_desc", "speed_asc");
}