[alarms] Fix sorting of alarms

Do not perform qLowerBounds on the list of alarms that is not ordered. This caused the calculated new index of the alarm to be off and even out of bounds sometimes, which caused a seg fault.