parent
3f62610896
commit
37907411bc
@ -347,7 +347,7 @@ class SearchVM : ViewModel(), KoinComponent {
|
|||||||
a.distanceTo(lastLocation)
|
a.distanceTo(lastLocation)
|
||||||
.compareTo(b.distanceTo(lastLocation))
|
.compareTo(b.distanceTo(lastLocation))
|
||||||
}
|
}
|
||||||
.distinct()
|
.distinctBy { it.key }
|
||||||
.toList()
|
.toList()
|
||||||
} else {
|
} else {
|
||||||
locationResults.value = locations.applyRanking(resultOrder)
|
locationResults.value = locations.applyRanking(resultOrder)
|
||||||
@ -485,7 +485,7 @@ class SearchVM : ViewModel(), KoinComponent {
|
|||||||
} else {
|
} else {
|
||||||
sequence.sorted()
|
sequence.sorted()
|
||||||
}
|
}
|
||||||
return sorted.distinct().toList()
|
return sorted.distinctBy { it.key }.toList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user