Skip to content

Commit

Permalink
feat: use localeCompare
Browse files Browse the repository at this point in the history
  • Loading branch information
btea committed May 2, 2024
1 parent 19740e7 commit 24e379c
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/ui/client/composables/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@ export const client = (function createVitestClient() {
})()

function sort(a: File, b: File) {
if (a.name < b.name)
return -1

if (a.name > b.name)
return 1

return 0
return a.name.localeCompare(b.name)
}

export const config = shallowRef<ResolvedConfig>({} as any)
Expand Down

0 comments on commit 24e379c

Please sign in to comment.