Order alerts properly