diff --git a/docs-web/src/main/webapp/src/app/docs/controller/document/DocumentViewContent.js b/docs-web/src/main/webapp/src/app/docs/controller/document/DocumentViewContent.js index c943e3ad..f410c64c 100644 --- a/docs-web/src/main/webapp/src/app/docs/controller/document/DocumentViewContent.js +++ b/docs-web/src/main/webapp/src/app/docs/controller/document/DocumentViewContent.js @@ -111,6 +111,9 @@ angular.module('docs').controller('DocumentViewContent', function ($scope, $root } if (files && files.length) { + // Sort by filename + files = _.sortBy(files, 'name'); + // Adding files to the UI var newfiles = []; _.each(files, function (file) {