mirror of
https://github.com/sismics/docs.git
synced 2024-12-22 11:23:48 +01:00
Closes #318: Sort file list on drag & drop before sending to server
This commit is contained in:
parent
8bd22ebafa
commit
d654564f6b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user