Skip to content

Commit

Permalink
Update sort
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1eef committed Aug 31, 2024
1 parent cfce51e commit a5f6604
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/loaders/SurahIndexLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { formatNumber } from "~/lib/t";
pkg.fonts.forEach((f) => document.fonts.add(f));
pkg.css.forEach((s) => document.head.appendChild(s));
pkg.scripts
.sort((s) => Number(s.id))
.sort((a,b) => Number(a.id) - Number(b.id))

Check failure on line 38 in src/js/loaders/SurahIndexLoader.ts

View workflow job for this annotation

GitHub Actions / ci

Insert `·`
.forEach((s) => {
document.body.removeChild(document.body.appendChild(s));
});
Expand Down
2 changes: 1 addition & 1 deletion src/js/loaders/SurahStreamLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { formatNumber } from "~/lib/t";
pkg.css.forEach((s) => document.head.appendChild(s));
pkg.json.forEach((o) => document.body.appendChild(o));
pkg.scripts
.sort((s) => Number(s.id))
.sort((a,b) => Number(a.id) - Number(b.id))

Check failure on line 45 in src/js/loaders/SurahStreamLoader.ts

View workflow job for this annotation

GitHub Actions / ci

Insert `·`
.forEach((s) => {
document.body.removeChild(document.body.appendChild(s));
});
Expand Down

0 comments on commit a5f6604

Please sign in to comment.