Sorting the alarm list