Skip to content

Commit

Permalink
feat: sort Booru domain list
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Jul 5, 2021
1 parent de6c11a commit a3410c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pages/premium/saved-posts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ export default {
(POST) => POST.meta_data.booru_domain
)
const UNIQUE_BOORU_DOMAIN_LIST = [...new Set(BOORU_DOMAIN_LIST)]
const UNIQUE_SORTED_BOORU_DOMAIN_LIST = [
...new Set(BOORU_DOMAIN_LIST),
].sort()
const BOORU_GROUP = {
name: 'Default',
domains: ['<All Boorus>', ...UNIQUE_BOORU_DOMAIN_LIST],
domains: ['<All Boorus>', ...UNIQUE_SORTED_BOORU_DOMAIN_LIST],
}
return [BOORU_GROUP]
Expand Down

0 comments on commit a3410c4

Please sign in to comment.