This commit is contained in:
Reinhard Pointner 2016-03-26 19:44:41 +00:00
parent 6a9c4a4ccd
commit e4817e9de8
1 changed files with 2 additions and 6 deletions

View File

@ -960,12 +960,8 @@ public class MediaDetection {
// sort by similarity to original query (descending) // sort by similarity to original query (descending)
List<Movie> results = new ArrayList<Movie>(probabilityMap.keySet()); List<Movie> results = new ArrayList<Movie>(probabilityMap.keySet());
sort(results, new Comparator<Movie>() { results.sort((a, b) -> {
@Override
public int compare(Movie a, Movie b) {
return probabilityMap.get(b).compareTo(probabilityMap.get(a)); return probabilityMap.get(b).compareTo(probabilityMap.get(a));
}
}); });
return results; return results;