Interface ISortHandler
A handler that handles sort query parameters.
Namespace: Umbraco.Cms.Core.DeliveryApi
Assembly: Umbraco.Core.dll
Syntax
public interface ISortHandler : IQueryHandler, IDiscoverable
Methods
View SourceBuildSortOption(String)
Builds a SortOption for the sort query.
Declaration
SortOption BuildSortOption(string sort)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | sort | The sort query (i.e. "name:asc"). |
Returns
| Type | Description |
|---|---|
| SortOption | A SortOption that can be used when building specific sorting queries. |