Skip to content

Commit cadf9f7

Browse files
committed
added sortModules method to Chunk class
1 parent 0ab36c4 commit cadf9f7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎lib/Chunk.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,12 @@ class Chunk {
421421
};
422422
}
423423

424+
sortModules(sortByFn = sortById) {
425+
this._modules.sortWith(sortByFn);
426+
}
427+
424428
sortItems() {
425-
this._modules.sortWith(sortById);
429+
this.sortModules();
426430
this.origins.sort((a, b) => {
427431
const aIdent = a.module.identifier();
428432
const bIdent = b.module.identifier();

0 commit comments

Comments
 (0)