From 43dd31c7c2777cd474f5eb39406b6d06a60042eb Mon Sep 17 00:00:00 2001 From: Anselm Brehme Date: Sat, 24 Mar 2018 21:20:31 +0100 Subject: [PATCH] fix version sorting --- app/ore/rest/OreRestfulApi.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/ore/rest/OreRestfulApi.scala b/app/ore/rest/OreRestfulApi.scala index f150ca62f..bf3736d4a 100755 --- a/app/ore/rest/OreRestfulApi.scala +++ b/app/ore/rest/OreRestfulApi.scala @@ -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")