From 5b3a17e24efcf7603f0fd73d8eabd8fb516ee536 Mon Sep 17 00:00:00 2001
From: Michael Kriese <michael.kriese@visualon.de>
Date: Fri, 23 Aug 2019 10:12:21 +0200
Subject: [PATCH] fix(versioning): fix wrong this context (#4352)

---
 lib/workers/repository/process/lookup/rollback.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/workers/repository/process/lookup/rollback.js b/lib/workers/repository/process/lookup/rollback.js
index 7d14e3daf2..28b8fec0ab 100644
--- a/lib/workers/repository/process/lookup/rollback.js
+++ b/lib/workers/repository/process/lookup/rollback.js
@@ -35,7 +35,7 @@ function getRollbackUpdate(config, versions) {
     { dependency: depName, versions },
     'Versions found before rolling back'
   );
-  lessThanVersions.sort(version.sortVersions);
+  lessThanVersions.sort((a, b) => version.sortVersions(a, b));
   const toVersion = lessThanVersions.pop();
   // istanbul ignore if
   if (!toVersion) {
-- 
GitLab