const compare = (a, b) => {
if (a === b) return 0;
return a < b ? -1 : 1;
};
arr.sort((a, b) => {
return a.name === b.name ? compare(a.value, b.value) : compare(a.name, b.name);
})
<button class="btn btn-danger" @click='delete'>Удалить</button>
@click="this.delete"
.