Sort and display alarms correctly.