kopia lustrzana https://github.com/TeamNewPipe/NewPipe
Use Comparator.comparingDouble().
rodzic
059cfcbad2
commit
d1f3f15478
|
@ -31,7 +31,7 @@ public class PreferenceFuzzySearchFunction
|
|||
// Specific search - Used for determining order of search results
|
||||
// Calculate a score based on specific search fields
|
||||
.map(item -> new FuzzySearchSpecificDTO(item, keyword))
|
||||
.sorted(Comparator.comparing(FuzzySearchSpecificDTO::getScore).reversed())
|
||||
.sorted(Comparator.comparingDouble(FuzzySearchSpecificDTO::getScore).reversed())
|
||||
.map(FuzzySearchSpecificDTO::getItem)
|
||||
// Limit the amount of search results
|
||||
.limit(20);
|
||||
|
|
Ładowanie…
Reference in New Issue