Skip to content

Commit

Permalink
fix: correct sorting of clubs
Browse files Browse the repository at this point in the history
  • Loading branch information
thraizz committed Mar 28, 2024
1 parent 78f3ced commit 0439062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/calculateAverages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const sortClubs = (a: AveragedSwing, b: AveragedSwing) => {
if (typeA === typeB) {
const numberA = parseInt(clubA.match(/\d+/)?.[0] || "0");
const numberB = parseInt(clubB.match(/\d+/)?.[0] || "0");
return numberA - numberB;
return numberB - numberA;
}
return typeA - typeB;
}
Expand Down

0 comments on commit 0439062

Please sign in to comment.