diff --git a/src/components/finanzer/Overview.vue b/src/components/finanzer/Overview.vue
index f991d46..2f64100 100644
--- a/src/components/finanzer/Overview.vue
+++ b/src/components/finanzer/Overview.vue
@@ -70,7 +70,9 @@
style="margin-top: 3px"
:loading="user.loading"
>
- {{ user.lastname }}, {{ user.firstname }}
+
+ {{ user.lastname }}, {{ user.firstname }}
+
diff --git a/src/store/modules/finanzerUsers.js b/src/store/modules/finanzerUsers.js
index 2a16b17..5662209 100644
--- a/src/store/modules/finanzerUsers.js
+++ b/src/store/modules/finanzerUsers.js
@@ -180,7 +180,17 @@ const mutations = {
return sum
},
sortUsers: state => {
+ console.log(state.users)
state.users = state.users.sort((a, b) => {
+ if (a.locked && b.locked) {
+ if (a.lastname > b.lastname) return 1
+ if (a.lastname < b.lastname) return -1
+ if (a.firstname > b.firstname) return 1
+ if (a.firstname < b.firstname) return -1
+ return 0
+ }
+ if (a.locked) return -1
+ if (b.locked) return 1
if (a.lastname > b.lastname) return 1
if (a.lastname < b.lastname) return -1
if (a.firstname > b.firstname) return 1