Skip to content

Commit e041ba4

Browse files
authored
Update mod.ts
1 parent ed0d8a4 commit e041ba4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mod.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ export function processCommandCalculations(commands: Command[]) {
88
amounts.push({ name: command.name, characters });
99
}
1010

11-
console.table(amounts.sort((a, b) => b.characters - a.characters), ["name", "characters"]);
11+
// 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;
1215
}
1316

1417
function calculateCharacters(command: Command) {

0 commit comments

Comments
 (0)