Fixed sorting of notificatoins