--- title: Coveo Relevancy Sort slug: '3065' canonical_url: https://docs.coveo.com/en/3065/ collection: coveo-for-sitecore-v5 source_format: adoc --- # Coveo Relevancy Sort > **Legacy feature** > > The Coveo Hive Framework is now in maintenance mode and is no longer recommended for new implementations. > > To build new search experiences, use one of Coveo's more modern, lightweight, and responsive libraries. > To get started, see the [Build search](https://docs.coveo.com/en/2473/) article. Implements the [Coveo JavaScript Search Framework](https://docs.coveo.com/en/187/) [Sort](https://coveo.github.io/search-ui/components/sort.html) component with the `sortCriteria` component option set to `relevancy`. Clicking the **Coveo Relevancy Sort** search interface control allows the user to switch to search result sorting based on relevance. ## Usage notes * When the **Coveo Relevancy Sort** search interface control is selected and a user performs a search query, the Coveo index computes and returns the `score` field value with the search result items. Therefore, no prior field indexing action is required to be able to use the **Coveo Relevancy Sort** rendering. * When a user changes the search results sorting option by clicking another Coveo Sort search interface control, this triggers a Search API call with the requested `sortCriteria` in the query parameters. * You can [customize the CSS](https://docs.coveo.com/en/2342/) associated with this rendering. ## Insertion location

Coveo Hive

The Coveo Relevancy Sort rendering is an Allowed Control in the following placeholder(s): Sorts

Example insertion sequence for the Coveo Relevancy Sort rendering.

Coveo Hive SXA

Coveo for Sitecore SXA rendering insertion locations aren't limited by placeholder Allowed Controls. The Coveo Relevancy Sort rendering may therefore be inserted throughout the partial design, whether in Coveo for Sitecore or Sitecore placeholders.

Example insertion sequence for the Coveo Relevancy Sort rendering.
## Data source options The following table lists the available data source options for this rendering. [%header,cols="34%,66%"] |=== |Option name |Description |Caption |See the [caption](https://coveo.github.io/search-ui/components/sort.html#options.caption) component option. |DOM unique ID a|{empty} -- Randomly generated HTML element ID. -- |Additional data attributes a|{empty} -- Allows [use of the Coveo JavaScript Search Framework **Sort** component options](https://docs.coveo.com/en/2776/) that aren't directly available in the data source. -- |=== ## Sample generated HTML and corresponding visual output ```html
Relevance
``` ![Relevance sort example | Coveo for Sitecore 5](https://docs.coveo.com/en/assets/images/c4sc-v5/relevance-sort-example.gif)