From 7c9df8cc794e9317f9fe37aadec912f61d5d5384 Mon Sep 17 00:00:00 2001
From: Alain Nussbaumer <alain.nussbaumer@alleluia.ch>
Date: Tue, 12 Dec 2023 21:17:28 +0100
Subject: [PATCH] [web] Reorganise store properties alphabetically

---
 web-src/src/store/index.js | 80 ++++++++++++++++++--------------------
 1 file changed, 38 insertions(+), 42 deletions(-)

diff --git a/web-src/src/store/index.js b/web-src/src/store/index.js
index 427bb64a..a1c10868 100644
--- a/web-src/src/store/index.js
+++ b/web-src/src/store/index.js
@@ -4,73 +4,69 @@ import * as types from './mutation_types'
 export default createStore({
   state() {
     return {
+      albums_sort: 1,
+      artists_sort: 1,
+      artist_albums_sort: 1,
+      artist_tracks_sort: 1,
+      audiobooks_count: {},
+      composer_tracks_sort: 1,
       config: {
-        websocket_port: 0,
+        buildoptions: [],
         version: '',
-        buildoptions: []
-      },
-      settings: {
-        categories: []
+        websocket_port: 0
       },
+      genre_tracks_sort: 1,
+      hide_singles: false,
+      hide_spotify: false,
       library: {
-        artists: 0,
         albums: 0,
-        songs: 0,
+        artists: 0,
         db_playtime: 0,
+        songs: 0,
         started_at: '01',
         updated_at: '01',
         updating: false
       },
-      audiobooks_count: {},
       podcasts_count: {},
-      rss_count: {},
+      lastfm: {},
+      lyrics: {
+        content: [],
+        pane: false
+      },
+      notifications: {
+        list: [],
+        next_id: 1
+      },
       outputs: [],
+      pairing: {},
       player: {
-        state: 'stop',
-        repeat: 'off',
         consume: false,
-        shuffle: false,
-        volume: 0,
         item_id: 0,
         item_length_ms: 0,
-        item_progress_ms: 0
-      },
-      lyrics: {
-        pane: false,
-        content: []
+        item_progress_ms: 0,
+        shuffle: false,
+        state: 'stop',
+        repeat: 'off',
+        volume: 0
       },
       queue: {
-        version: 0,
         count: 0,
-        items: []
+        items: [],
+        version: 0
       },
-      lastfm: {},
-      spotify: {},
-      pairing: {},
-
-      spotify_new_releases: [],
-      spotify_featured_playlists: [],
-
-      notifications: {
-        next_id: 1,
-        list: []
-      },
-
-      search_source: 'library',
       recent_searches: [],
-
-      composer_tracks_sort: 1,
-      genre_tracks_sort: 1,
-      hide_singles: false,
-      hide_spotify: false,
-      artists_sort: 1,
-      artist_albums_sort: 1,
-      artist_tracks_sort: 1,
-      albums_sort: 1,
+      rss_count: {},
+      search_source: 'library',
+      settings: {
+        categories: []
+      },
       show_only_next_items: false,
       show_burger_menu: false,
       show_player_menu: false,
       show_update_dialog: false,
+      spotify: {},
+      spotify_featured_playlists: [],
+      spotify_new_releases: [],
       update_dialog_scan_kind: ''
     }
   },