Skip to content

Commit

Permalink
added sortModules method to Chunk class
Browse files Browse the repository at this point in the history
  • Loading branch information
hulkish committed Jul 6, 2017
1 parent 0ab36c4 commit cadf9f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Chunk.js
Expand Up @@ -421,8 +421,12 @@ class Chunk {
};
}

sortModules(sortByFn = sortById) {
this._modules.sortWith(sortByFn);
}

sortItems() {
this._modules.sortWith(sortById);
this.sortModules();
this.origins.sort((a, b) => {
const aIdent = a.module.identifier();
const bIdent = b.module.identifier();
Expand Down

0 comments on commit cadf9f7

Please sign in to comment.