Skip to content

Commit

Permalink
sort files alphabetically, make more easier to find file
Browse files Browse the repository at this point in the history
  • Loading branch information
vitam committed Jul 31, 2017
1 parent 19ba83f commit 44d46a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions js/ctrls/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 44d46a6

Please sign in to comment.