Update lib/alerts.xsjslib - order alerts by last triggered