diff --git a/src/views/profile/ManagePrincess.vue b/src/views/profile/ManagePrincess.vue
index 6e66fef..7fbfa88 100644
--- a/src/views/profile/ManagePrincess.vue
+++ b/src/views/profile/ManagePrincess.vue
@@ -6,19 +6,32 @@
-
-
-
+
+
+
+
+
+
+
+
+
+
Number(x)) : []
},
+ sortedPrincess () {
+ let prcmap = this.profile[this.$store.state.activeProfile] && this.profile[this.$store.state.activeProfile].princess && Object.prototype.toString.call(this.profile[this.$store.state.activeProfile].princess) === '[object Object]' ? this.profile[this.$store.state.activeProfile].princess : {}
+ if (this.sortBy == 'rankdsc') {
+ let tmp = Object.entries(prcmap).map(kv => [Number(kv[1].rank), Number(kv[0])])
+ tmp.sort((b, a) => (a[0] - b[0] || (a[0] == b[0] && a[1] - b[1])))
+ return tmp.map(x => x[1])
+ }
+ // default
+ return Object.keys(prcmap).map(x => Number(x))
+ },
unStoragedPrincess () {
return this.$store.getters.princessIdList.map(x => Number(x)).filter(x => !this.storagedPrincess.includes(x))
}