sorted closing the view