v1.18.x
Barış Soner Uşaklı 7 years ago
parent 3551a34138
commit 6c5e99171e

@ -33,7 +33,13 @@ Upgrade.getAll = function (callback) {
versionA = path.dirname(a).split('/').pop(); versionA = path.dirname(a).split('/').pop();
versionB = path.dirname(b).split('/').pop(); versionB = path.dirname(b).split('/').pop();
return semver.compare(versionA, versionB); var semverCompare = semver.compare(versionA, versionB);
if (semverCompare) {
return semverCompare;
}
var timestampA = require(a).timestamp;
var timestampB = require(b).timestamp;
return timestampA - timestampB;
})); }));
}, },
async.apply(Upgrade.appendPluginScripts), async.apply(Upgrade.appendPluginScripts),

Loading…
Cancel
Save