blob: 7e9885035399d63b4845a88ff28e679a7111b1cf (
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;
|