mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
address: sort address by street and street number
This commit is contained in:
parent
30fcdfd1f6
commit
f7954d5159
@ -70,7 +70,9 @@ export default {
|
||||
return this.$data.value !== null && typeof this.$data.value.text !== 'undefined';
|
||||
},
|
||||
addresses() {
|
||||
return this.entity.loaded.addresses;
|
||||
return this.entity.loaded.addresses.sort(
|
||||
(a, b) => a.street > b.street || Number(a.streetNumber) - Number(b.streetNumber)
|
||||
)
|
||||
},
|
||||
street: {
|
||||
set(value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user