[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.
Merge pull request #9 from pgerdt/fix-segfault-when-ordering

[alarms] Fix sorting of alarms