Reorder the alert definitions so that they're properly grouped. (dm)