Use stable_sort for BPM events. (prioritizing ExBPM events)