Skip to content

Commit

Permalink
deno fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Nov 13, 2024
1 parent 499de21 commit 52e05c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/rebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ for (const path of collectRecursively(tests, "")) {
function sortNumberAware(a: string, b: string): number {
const aMatch = a.match(/^(.+?)_(\d+)$/);
const bMatch = b.match(/^(.+?)_(\d+)$/);

if (aMatch && bMatch && aMatch[1] === bMatch[1]) {
// Same base name, compare numbers
return parseInt(aMatch[2]) - parseInt(bMatch[2]);
}

// Default to string comparison
return a.localeCompare(b);
}
Expand Down

0 comments on commit 52e05c9

Please sign in to comment.