Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
eventEmitted($event: { event: string, value: any }): void {
if ($event.event === Event.onOrder) {
if ($event.value.key === 'level') {
this.sortByLevel($event.value.order === 'asc');
} else if ($event.value.key === 'name') {
this.sortByLastName($event.value.order === 'asc');
}
}
}
}