sort files alphabetically, make more easier to find file

This commit is contained in:
vitam 2017-07-31 14:58:49 +02:00
parent 19ba83f273
commit 44d46a607c

View File

@ -124,6 +124,14 @@ angular
this.files = _.cloneDeep(files);
var groupFiles = function (files) {
// sort files alphabetically
files.sort(function (a, b) {
if (a.relpath < b.relpath) {
return -1;
} else {
return 1;
}
});
function OrganizedFolder () {
this.dirs = {};
this.files = [];