> For the complete documentation index, see [llms.txt](https://documentation.ajaxsearchlite.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.ajaxsearchlite.com/general-options/ordering.md).

# Ordering

![](/files/-MXqUiNXDt8PPLQBvjRd)

### Primary ordering

This is used first, when fetching the results.

### Secondary ordering

When the primary ordering of matching results is the same, then the secondary ordering is used.

Ex.:  Primary -> Relevance, Secondary -> Date descending\
Result1 and Result2 has the same relevance, so the secondary ordering kicks in, and orders by the date published descending.
