From fe25a1bc5476b02ade21788d730911fe725215a6 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 18 Dec 2022 15:16:32 -0600 Subject: [PATCH] Update item metadata pages sort --- client/pages/config/item-metadata-utils/genres.vue | 2 +- client/pages/config/item-metadata-utils/index.vue | 4 ++-- client/pages/config/item-metadata-utils/tags.vue | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/pages/config/item-metadata-utils/genres.vue b/client/pages/config/item-metadata-utils/genres.vue index de346e91..fc5b62b6 100644 --- a/client/pages/config/item-metadata-utils/genres.vue +++ b/client/pages/config/item-metadata-utils/genres.vue @@ -151,7 +151,7 @@ export default { this.$axios .$get('/api/genres') .then((data) => { - this.genres = data.genres || [] + this.genres = (data.genres || []).sort((a, b) => a.localeCompare(b, undefined, { sensitivity: 'base' })) }) .catch((error) => { console.error('Failed to load genres', error) diff --git a/client/pages/config/item-metadata-utils/index.vue b/client/pages/config/item-metadata-utils/index.vue index 7c472a39..9738c8d3 100644 --- a/client/pages/config/item-metadata-utils/index.vue +++ b/client/pages/config/item-metadata-utils/index.vue @@ -3,13 +3,13 @@
-

Manage Tags

+

{{ $strings.HeaderManageTags }}

arrow_forward
-

Manage Genres

+

{{ $strings.HeaderManageGenres }}

arrow_forward
diff --git a/client/pages/config/item-metadata-utils/tags.vue b/client/pages/config/item-metadata-utils/tags.vue index d01dc383..81758f72 100644 --- a/client/pages/config/item-metadata-utils/tags.vue +++ b/client/pages/config/item-metadata-utils/tags.vue @@ -151,7 +151,7 @@ export default { this.$axios .$get('/api/tags') .then((data) => { - this.tags = data.tags || [] + this.tags = (data.tags || []).sort((a, b) => a.localeCompare(b, undefined, { sensitivity: 'base' })) }) .catch((error) => { console.error('Failed to load tags', error)