alerts sort fix