diff --git a/commands/commit-count.js b/commands/commit-count.js index 25587ba..f2cd7d8 100644 --- a/commands/commit-count.js +++ b/commands/commit-count.js @@ -112,7 +112,7 @@ module.exports = { } } - messageMap = new Map([...messageMap.entries()].sort()); + messageMap = new Map([...messageMap.entries()].sort((a, b) => a - b)); // Start Commit Checking let validString = '';