---
title: Filters and Sorting
framework: foundation
role: collectionGroup
role_heading: API Collection
path: foundation/filters-and-sorting
---

# Filters and Sorting

Use predicates, expressions, and sort descriptors to examine elements in collections and other services.

## Topics

### Filltering

- [Predicate](foundation/predicate.md)
- [PredicateError](foundation/predicateerror.md)
- [PredicateCodableConfiguration](foundation/predicatecodableconfiguration.md)
- [PredicateCodableKeyPathProviding](foundation/predicatecodablekeypathproviding.md)
- [PredicateExpression](foundation/predicateexpression.md)
- [StandardPredicateExpression](foundation/standardpredicateexpression.md)
- [PredicateExpressions](foundation/predicateexpressions.md)
- [PredicateBindings](foundation/predicatebindings.md)
- [NSPredicate](foundation/nspredicate.md)
- [NSExpression](foundation/nsexpression.md)
- [NSComparisonPredicate](foundation/nscomparisonpredicate.md)
- [NSCompoundPredicate](foundation/nscompoundpredicate.md)

### Sorting

- [NSSortDescriptor](foundation/nssortdescriptor.md)
- [ComparisonResult](foundation/comparisonresult.md)
- [SortDescriptor](foundation/sortdescriptor.md)
- [SortComparator](foundation/sortcomparator.md)
- [ComparableComparator](foundation/comparablecomparator.md)
- [KeyPathComparator](foundation/keypathcomparator.md)
- [SortOrder](foundation/sortorder.md)

## See Also

### Fundamentals

- [Numbers, Data, and Basic Values](foundation/numbers-data-and-basic-values.md)
- [Strings and Text](foundation/strings-and-text.md)
- [Collections](foundation/collections.md)
- [Dates and Times](foundation/dates-and-times.md)
- [Units and Measurement](foundation/units-and-measurement.md)
- [Data Formatting](foundation/data-formatting.md)
