Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
sortBy(column: string, order: 'asc' | 'desc'): void {
this.table.apiEvent({
type: API.sortBy,
value: { column, order },
});
}
sortBy(): void {
const column = this.sortColumn;
const order = this.sortOrder;
this.table.apiEvent({
type: API.sortBy,
value: { column, order },
});
}
}