1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

Version ordering was backward.

This commit is contained in:
Cedric Beust 2016-01-06 01:43:03 +04:00
parent c4ce4784c8
commit 1bf4828e47

View file

@ -65,7 +65,7 @@ public class RepoFinder @Inject constructor(val executors: KobaltExecutors) {
if (results.size > 0) {
// results.sortByDescending { Versions.toLongVersion(it.version) }
results.sort({ left, right -> left.version!!.compareTo(right.version!!) })
results.sort({ left, right -> right.version!!.compareTo(left.version!!) })
return results[0]
} else {
return RepoResult(HostConfig(""), false, Version.of(id))