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