Fixed sorting and alert dismiss.