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++) {