Skip to content

Commit

Permalink
fix version sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Faithcaio committed Mar 24, 2018
1 parent 672fa07 commit 43dd31c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/ore/rest/OreRestfulApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ trait OreRestfulApi {
} getOrElse queryVersions filter {
case (p, v, vId, c, uName) =>
p.pluginId.toLowerCase === pluginId.toLowerCase
} sortBy { case (_, v, _, _, _) =>
v.createdAt.desc
}

val maxLoad = this.config.projects.get[Int]("init-version-load")
Expand Down

0 comments on commit 43dd31c

Please sign in to comment.