Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
johnoliver committed May 20, 2020
1 parent 3aef4e6 commit 808fabf
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ open class PackageEndpoint {
val releases = APIDataStore.getAdoptRepos().getFilteredReleases(releaseFilter, binaryFilter, SortOrder.DESC).toList()

val comparator = VERSION_COMPARATOR.thenBy { it.version_data.optional }
.thenBy { it.updated_at }
.thenBy { it.timestamp }

return releases.sortedWith(comparator)
}
Expand Down

0 comments on commit 808fabf

Please sign in to comment.