fixed sorting bug in alerts.php
Merge branch 'hotfix/alertSorting'