## Uses of Class
org.springframework.data.domain.Sort

Packages that use Sort
org.springframework.data.domain: Central domain abstractions especially to be used in combination with the `Repository` abstraction.
org.springframework.data.domain.jaxb: Central domain abstractions especially to be used in combination with the `Repository` abstraction.
org.springframework.data.history: Basic interfaces and value objects for histography API.
org.springframework.data.querydsl: Querydsl integration support classes.
org.springframework.data.repository: Central interfaces for repository abstraction.
org.springframework.data.repository.query: Support classes to work with query methods.
org.springframework.data.repository.query.parser: Support classes for parsing queries from method names.
org.springframework.data.repository.reactive: Support for reactive repositories.
org.springframework.data.repository.support: Support classes for integration of the repository programming model with 3rd party frameworks.
org.springframework.data.web: Integration with Spring MVC.

### Uses of Sort in org.springframework.data.domain

Subclasses of Sort in org.springframework.data.domain
`static class` `Sort.TypedSort<T>` Extension of Sort to use method handles to define properties to sort by.

Methods in org.springframework.data.domain that return Sort
`Sort` Sort.`and(Sort sort)` Returns a new `Sort` consisting of the `Sort.Order`s of the current `Sort` combined with the given ones.
`Sort` Sort.`ascending()` Returns a new `Sort` with the current setup but ascending order direction.
`Sort` Sort.TypedSort.`ascending()`
`static Sort` Sort.`by(List<Sort.Order> orders)` Creates a new `Sort` for the given `Sort.Order`s.
`static Sort` Sort.`by(Sort.Direction direction, String... properties)` Creates a new `Sort` for the given `Sort.Order`s.
`static Sort` Sort.`by(Sort.Order... orders)` Creates a new `Sort` for the given `Sort.Order`s.
`static Sort` Sort.`by(String... properties)` Creates a new `Sort` for the given properties.
`Sort` Sort.`descending()` Returns a new `Sort` with the current setup but descending order direction.
`Sort` Sort.TypedSort.`descending()`
`Sort` Pageable.`getSort()` Returns the sorting parameters.
`Sort` Slice.`getSort()` Returns the sorting parameters for the `Slice`.
`Sort` PageRequest.`getSort()`
`default Sort` Pageable.`getSortOr(Sort sort)` Returns the current `Sort` or the given one if the current one is unsorted.
`static Sort` Sort.`unsorted()` Returns a `Sort` instances representing no sorting setup at all.
`Sort` Sort.Order.`withProperties(String... properties)` Returns a new `Sort` instance for the given properties.

Methods in org.springframework.data.domain with parameters of type Sort
`Sort` Sort.`and(Sort sort)` Returns a new `Sort` consisting of the `Sort.Order`s of the current `Sort` combined with the given ones.
`default Sort` Pageable.`getSortOr(Sort sort)` Returns the current `Sort` or the given one if the current one is unsorted.
`static PageRequest` PageRequest.`of(int page, int size, Sort sort)` Creates a new `PageRequest` with sort parameters applied.

Constructors in org.springframework.data.domain with parameters of type Sort
Constructor and Description
`PageRequest(int page, int size, Sort sort)` Creates a new `PageRequest` with sort parameters applied.

### Uses of Sort in org.springframework.data.domain.jaxb

Methods in org.springframework.data.domain.jaxb that return Sort
`Sort` SortAdapter.`unmarshal(SpringDataJaxb.SortDto source)`

Methods in org.springframework.data.domain.jaxb with parameters of type Sort
`SpringDataJaxb.SortDto` SortAdapter.`marshal(Sort source)`

### Uses of Sort in org.springframework.data.history

Subclasses of Sort in org.springframework.data.history
`class` `RevisionSort` A dedicated `Sort` implementation that allows the definition of the ordering of revisions independently of the property name the revision number is held in.

Methods in org.springframework.data.history with parameters of type Sort
`static Sort.Direction` RevisionSort.`getRevisionDirection(Sort sort)` Returns in which direction to sort revisions for the given `Sort` instance.

### Uses of Sort in org.springframework.data.querydsl

Subclasses of Sort in org.springframework.data.querydsl
`class` `QSort` Sort option for queries that wraps a Querydsl `OrderSpecifier`.

Methods in org.springframework.data.querydsl that return Sort
`Sort` QPageRequest.`getSort()`

Methods in org.springframework.data.querydsl with parameters of type Sort
`reactor.core.publisher.Flux<T>` ReactiveQuerydslPredicateExecutor.`findAll(com.querydsl.core.types.Predicate predicate, Sort sort)` Returns a `Flux` emitting all entities matching the given `Predicate` applying the given `Sort`.
`Iterable<T>` QuerydslPredicateExecutor.`findAll(com.querydsl.core.types.Predicate predicate, Sort sort)` Returns all entities matching the given `Predicate` applying the given `Sort`.
`Iterable<Object>` QuerydslRepositoryInvokerAdapter.`invokeFindAll(Sort sort)`
`Optional<Object>` QuerydslRepositoryInvokerAdapter.`invokeQueryMethod(Method method, MultiValueMap<String,? extends Object> parameters, Pageable pageable, Sort sort)`

### Uses of Sort in org.springframework.data.repository

Methods in org.springframework.data.repository with parameters of type Sort
`Iterable<T>` PagingAndSortingRepository.`findAll(Sort sort)` Returns all entities sorted by the given options.

### Uses of Sort in org.springframework.data.repository.query

Methods in org.springframework.data.repository.query that return Sort
`Sort` ParametersParameterAccessor.`getSort()`
`Sort` ParameterAccessor.`getSort()` Returns the sort instance to be used for query creation.

Methods in org.springframework.data.repository.query with parameters of type Sort
`<S extends T> reactor.core.publisher.Flux<S>` ReactiveQueryByExampleExecutor.`findAll(Example<S> example, Sort sort)` Returns all entities matching the given `Example` applying the given `Sort`.
`<S extends T> Iterable<S>` QueryByExampleExecutor.`findAll(Example<S> example, Sort sort)` Returns all entities matching the given `Example` applying the given `Sort`.

### Uses of Sort in org.springframework.data.repository.query.parser

Methods in org.springframework.data.repository.query.parser that return Sort
`Sort` PartTree.`getSort()` Returns the `Sort` specification parsed from the source.

Methods in org.springframework.data.repository.query.parser with parameters of type Sort
`protected abstract T` AbstractQueryCreator.`complete(S criteria, Sort sort)` Actually creates the query object applying the given criteria object and `Sort` definition.
`T` AbstractQueryCreator.`createQuery(Sort dynamicSort)` Creates the actual query object applying the given `Sort` parameter.

### Uses of Sort in org.springframework.data.repository.reactive

Methods in org.springframework.data.repository.reactive with parameters of type Sort
`reactor.core.publisher.Flux<T>` ReactiveSortingRepository.`findAll(Sort sort)` Returns all entities sorted by the given options.
`io.reactivex.rxjava3.core.Flowable<T>` RxJava3SortingRepository.`findAll(Sort sort)` Returns all entities sorted by the given options.
`io.reactivex.Flowable<T>` RxJava2SortingRepository.`findAll(Sort sort)` Returns all entities sorted by the given options.

### Uses of Sort in org.springframework.data.repository.support

Methods in org.springframework.data.repository.support with parameters of type Sort
`Iterable<Object>` RepositoryInvoker.`invokeFindAll(Sort sort)` Invokes the find-all method of the underlying repository using the method taking a `Sort` as parameter if available (i.e. the equivalent to `PagingAndSortingRepository.findAll(Sort)`) or the plain equivalent to `CrudRepository.findAll()`.
`Optional<Object>` RepositoryInvoker.`invokeQueryMethod(Method method, MultiValueMap<String,? extends Object> parameters, Pageable pageable, Sort sort)` Invokes the query method backed by the given `Method` using the given parameters, `Pageable` and `Sort`.

### Uses of Sort in org.springframework.data.web

Methods in org.springframework.data.web that return Sort
`protected Sort` SortHandlerMethodArgumentResolverSupport.`getDefaultFromAnnotationOrFallback(MethodParameter parameter)` Reads the default `Sort` to be used from the given `MethodParameter`.
`Sort` SortArgumentResolver.`resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)` Resolves a `Sort` method parameter into an argument value from a given request.
`Sort` SortHandlerMethodArgumentResolver.`resolveArgument(MethodParameter parameter, ModelAndViewContainer mavContainer, NativeWebRequest webRequest, WebDataBinderFactory binderFactory)`
`Sort` ReactiveSortHandlerMethodArgumentResolver.`resolveArgumentValue(MethodParameter parameter, BindingContext bindingContext, ServerWebExchange exchange)`

Methods in org.springframework.data.web with parameters of type Sort
`protected List<String>` SortHandlerMethodArgumentResolverSupport.`foldIntoExpressions(Sort sort)` Folds the given `Sort` instance into a `List` of sort expressions, accumulating `Sort.Order` instances of the same direction into a single expression if they are in order.
`protected List<String>` SortHandlerMethodArgumentResolverSupport.`legacyFoldExpressions(Sort sort)` Folds the given `Sort` instance into two expressions.
`void` SortHandlerMethodArgumentResolverSupport.`setFallbackSort(Sort fallbackSort)` Configures the `Sort` to be used as fallback in case no `SortDefault` or `SortDefault.SortDefaults` (the latter only supported in legacy mode) can be found at the method parameter to be resolved.