import { Enum } from 'enumify'

export class TableSortType extends Enum {}
TableSortType.initEnum([
  'ASCENDING',
  'DESCENDING'
])

export class TableSorter {
  constructor (id = null, type = TableSortType.NONE) {
    this.id = id
    this.type = type
  }
}
