mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 16:28:12 -07:00
Version ordering was backward.
This commit is contained in:
parent
c4ce4784c8
commit
1bf4828e47
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ public class RepoFinder @Inject constructor(val executors: KobaltExecutors) {
|
||||||
|
|
||||||
if (results.size > 0) {
|
if (results.size > 0) {
|
||||||
// results.sortByDescending { Versions.toLongVersion(it.version) }
|
// 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]
|
return results[0]
|
||||||
} else {
|
} else {
|
||||||
return RepoResult(HostConfig(""), false, Version.of(id))
|
return RepoResult(HostConfig(""), false, Version.of(id))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue