Use non-destructive sort in edts_debug list-modes
Add generic event-handling