I have this function :
computed: {
availableSystems() {
const availableSystems = this.systems.filter((sys) => sys && !sys?.active && sys?.enabled) || [];
availableSystems.sort((a, b) => {
if (a.name < b.name) { return -1; }
if (a.name > b.name) { return 1; }
return 0;
});
return availableSystems;
},
But is not working as expected. I have the array of data whithout sort alphabetically. Have you an idea ? Thx in advance