Skip to content

Commit

Permalink
Correctly sort publishers
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Jun 25, 2024
1 parent 7808661 commit aac4f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export const publisherSelection = computed(() => {
}
})
})
publishers.sort((a, b) => b.name > a.name)
publishers.sort((a, b) => b.name < a.name)
// Put all publishers with only one scheme (+ schemes without publisher) into "others"
const otherLimit = 3
const otherSchemes = publishers.filter(p => p.schemes.length < otherLimit).reduce((p, c) => p.concat(c.schemes), []).concat(schemes.value?.filter(s => !s.publisher?.length) || [])
Expand Down

0 comments on commit aac4f8c

Please sign in to comment.