Fix filter sorting