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 04ccc3c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/app/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,17 @@
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;
}
let exampleProgramLoader = loadExamplePrograms();
debugger;
</script>

<script lang="ts">
Expand Down Expand Up @@ -207,6 +212,7 @@
);
if (!exampleProgram) return;
debugger;
$IDEContext = structuredClone([
...exampleProgram.exampleProgramData,
...JackOS.filter(
Expand Down

0 comments on commit 04ccc3c

Please sign in to comment.