From da56f78894c24c16ee2463ba45a44826a4ada059 Mon Sep 17 00:00:00 2001 From: Paul Girard Date: Wed, 30 Aug 2017 16:28:45 +0200 Subject: [PATCH] sorting edits antichronos #429 --- server/routes/editLog.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/routes/editLog.js b/server/routes/editLog.js index e0f56a4e..32dd4c80 100644 --- a/server/routes/editLog.js +++ b/server/routes/editLog.js @@ -141,6 +141,7 @@ function getEditLog(req, res){ // "creator.isariAuthorizedCenters":1, // }} + {'$sort':{date:-1}}, // skip and limit {'$skip':query.skip ? +query.skip : 0}, {'$limit':query.limit ? +query.limit : 100}