From c86306e6a7f525fb4a379a475bfb83631fb5dc47 Mon Sep 17 00:00:00 2001 From: dkanada Date: Sat, 6 Mar 2021 13:41:23 +0900 Subject: [PATCH] invert version sorting for plugins Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com> --- src/controllers/dashboard/plugins/add/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/dashboard/plugins/add/index.js b/src/controllers/dashboard/plugins/add/index.js index 506e0a0c00..124a4d8b9e 100644 --- a/src/controllers/dashboard/plugins/add/index.js +++ b/src/controllers/dashboard/plugins/add/index.js @@ -23,7 +23,7 @@ function populateVersions(packageInfo, page, installedPlugin) { let html = ''; packageInfo.versions.sort((a, b) => { - return b.timestamp < a.timestamp ? 1 : -1; + return b.timestamp < a.timestamp ? -1 : 1; }); for (let i = 0; i < packageInfo.versions.length; i++) {