diff --git a/lib/index-web.js b/lib/index-web.js index caef8f992..d1a15a9ce 100644 --- a/lib/index-web.js +++ b/lib/index-web.js @@ -55,6 +55,15 @@ module.exports = function(config, auth, storage) { }) }) }, function(packages) { + packages.sort(function(p1, p2) { + if (p1.name < p2.name) { + return -1; + } + else { + return 1; + } + }); + next(template({ name: config.web && config.web.title ? config.web.title : 'Sinopia', packages: packages,