We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed0d8a4 commit e041ba4Copy full SHA for e041ba4
mod.ts
@@ -8,7 +8,10 @@ export function processCommandCalculations(commands: Command[]) {
8
amounts.push({ name: command.name, characters });
9
}
10
11
- console.table(amounts.sort((a, b) => b.characters - a.characters), ["name", "characters"]);
+ // Sort the commands by the highest to lowest
12
+ const sorted = amounts.sort((a, b) => b.characters - a.characters);
13
+ // Return the sorted characters
14
+ return sorted;
15
16
17
function calculateCharacters(command: Command) {
0 commit comments