sort files alphabetically, make more easier to find file
This commit is contained in:
parent
19ba83f273
commit
44d46a607c
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in New Issue
Block a user