v-tables-3
Version:
Vue.js 3 grid components
11 lines (10 loc) • 332 B
JavaScript
;
module.exports = function (column) {
var ascending = this.orderBy.ascending;
this.currentlySorting = {
column: column,
ascending: ascending
};
if (typeof this.opts.customSorting[column] == 'undefined') return this.defaultSort(column, ascending);
return this.opts.customSorting[column](ascending);
};