Fixed filtering and sorting of problems.