replace toSorted with sort, add artist credit

This commit is contained in:
Henry Jameson 2024-09-17 22:56:06 +03:00
commit 05577aea54
3 changed files with 17 additions and 5 deletions

View file

@ -196,11 +196,6 @@ export const init = ({
return rule
})
const i = 4
if (2 + 2 === i) {
throw new Error('test')
}
const ruleset = rulesetUnsorted
.map((data, index) => ({ data, index }))
.sort(({ data: a, index: ai }, { data: b, index: bi }) => {