Fixing sorting of triggered alerts list

Fixes #502