diff --git a/services/web/app/coffee/Features/Project/ProjectController.coffee b/services/web/app/coffee/Features/Project/ProjectController.coffee index b69c1e412b..5abf03ad00 100644 --- a/services/web/app/coffee/Features/Project/ProjectController.coffee +++ b/services/web/app/coffee/Features/Project/ProjectController.coffee @@ -163,6 +163,7 @@ module.exports = ProjectController = ProjectEntityHandler.getAllEntitiesFromProject project, (err, docs, files) -> return next(err) if err? entities = docs.concat(files) + .sort (a, b) -> a.path > b.path # Sort by path ascending .map (e) -> { path: e.path, type: if e.doc? then 'doc' else 'file'