Skip to content

Commit

Permalink
refactor: Provide a compare function to avoid sorting elements alphab…
Browse files Browse the repository at this point in the history
…etically.
  • Loading branch information
Seli0303 committed Jun 20, 2024
1 parent 2f41ad0 commit 842bd71
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default {
for (const job of this.mapViewData.rawData.unassigned) {
ids.push(job.id)
}
ids.sort()
ids.sort((a,b) => a-b)
return 'Job ' + ids.join(', Job ')
}
},
Expand Down

0 comments on commit 842bd71

Please sign in to comment.