(API) Fix result order in API results

These results should be presented in the same order as their ranking score.
This commit is contained in:
Viktor Lofgren 2024-02-14 11:47:14 +01:00
parent 02dd5c5853
commit 6950dffcb4

View File

@ -40,7 +40,7 @@ public class ApiSearchOperator {
rsp.results()
.stream()
.map(this::convert)
.sorted(Comparator.comparing(ApiSearchResult::getQuality).reversed())
.sorted(Comparator.comparing(ApiSearchResult::getQuality))
.limit(count)
.collect(Collectors.toList()));
}