> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hirehive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sorting

> Change the order of items returned in a list

## Introduction

Endpoints that return a paginated list can be sorted by specific fields related to the endpoint.
Eg. Jobs can be sorted by the date they were created.

A list of what fields are sortable can be see in each paginated endpoint.

### Ascending/Descending

By default fields are sorted in ascending order but you can change this to descending by appending ` desc` to the value in the query parameter.
Eg. To sort jobs by the created date in descending order use `?sort=created_date desc`

```bash theme={null}
https://api.hirehive.com/v1.0/{company_id}/jobs?sort=created_date%20desc
```

<ParamField query="sort" type="string">
  A query param that allows you to change the order of the items in the list
</ParamField>
