correct filter sorting