Browse Source

Sort files in dialog by name.

Signed-off-by: Patrik Novotný <patrik.novotny@gmx.com>
pull/9151/head
Patrik Novotný 8 years ago
parent
commit
e977246d7c
  1. 2
      core/js/oc-dialogs.js

2
core/js/oc-dialogs.js

@ -847,7 +847,7 @@ var OCdialogs = {
} else if(a.type !== 'dir' && b.type === 'dir') {
return 1;
} else {
return -(a.mtime - b.mtime);
return a.name.localeCompare(b.name, undefined, {numeric: true});
}
});

Loading…
Cancel
Save