Order by state in severity order based on AlertType ordinal
Fix jslint