Skip to content

Commit

Permalink
Fix IDE tab order bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ArhanChaudhary committed Apr 29, 2024
1 parent 27ee06d commit 78a51f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@
mainFileDatum,
...exampleProgram.exampleProgramData
.filter((fileDatum) => fileDatum.fileName !== "Main")
.sort((a, b) => +(a.fileName < b.fileName)),
.sort((a, b) => {
if (a.fileName < b.fileName) return -1;
if (a.fileName > b.fileName) return 1;
return 0;
}),
];
}
return examplePrograms;
Expand Down

0 comments on commit 78a51f6

Please sign in to comment.