summaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 41c762f0fa1..f4c99d1128c 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -318,6 +318,7 @@ var createDragShadow = function(event) {
// do not show drag shadow for too many files
var selectedFiles = _.first(FileList.getSelectedFiles(), FileList.pageSize);
+ selectedFiles.sort(FileList._fileInfoCompare);
if (!isDragSelected && selectedFiles.length === 1) {
//revert the selection