**nit:** *boolean trap!* but to be honest could not think of a good solution.. - if we add 2 methods just to avoid the flag how would we name it? it is only called 3 times, is it worth adding a new method?

for me it looks like this was added just to avoid unnecessary work.. (call sort only once after finish). maybe the best approach would be to remove the need of the `sortAlarms` method altogether (always add elements to the DOM at the right order).

PS: I think it's OK to keep it like this, it's just that the boolean flag usually is a good indicator of other problems in the system. (it made me look at implementation to understand what was going on)