Skip to content

Commit

Permalink
fix reversed order in Chunk.compareTo
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Apr 17, 2018
1 parent be79d6d commit 205ca62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Chunk.js
Expand Up @@ -170,8 +170,8 @@ class Chunk {
if (aItem.done) return 0;
const aModuleIdentifier = aItem.value.identifier();
const bModuleIdentifier = bItem.value.identifier();
if (aModuleIdentifier > bModuleIdentifier) return -1;
if (aModuleIdentifier < bModuleIdentifier) return 1;
if (aModuleIdentifier < bModuleIdentifier) return -1;
if (aModuleIdentifier > bModuleIdentifier) return 1;
}
}

Expand Down

0 comments on commit 205ca62

Please sign in to comment.