Closes #318: Sort file list on drag & drop before sending to server

This commit is contained in:
Benjamin Gamard 2019-05-03 15:09:43 +02:00
parent 8bd22ebafa
commit d654564f6b

View File

@ -111,6 +111,9 @@ angular.module('docs').controller('DocumentViewContent', function ($scope, $root
} }
if (files && files.length) { if (files && files.length) {
// Sort by filename
files = _.sortBy(files, 'name');
// Adding files to the UI // Adding files to the UI
var newfiles = []; var newfiles = [];
_.each(files, function (file) { _.each(files, function (file) {