1const STATUS = ['OK', 'Warning', 'Critical']; 2 3const TableSortMixin = { 4 methods: { 5 sortStatus(a, b, key) { 6 return STATUS.indexOf(a[key]) - STATUS.indexOf(b[key]); 7 }, 8 }, 9}; 10 11export default TableSortMixin; 12