Auto-sort lcore events when they're hooked.