(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:
parent
02dd5c5853
commit
6950dffcb4
@ -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()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user