> For the complete documentation index, see [llms.txt](https://pipeline.groupthought.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pipeline.groupthought.com/pipeline-5/collections/collection-sorting.md).

# Collection sorting

Display options to sort products in the current collection

When activated, a drop-down list of sort options are displayed in the options bar. Customers can choose to view products with various sort options including Featured, Best Selling, ascending and descending options for Alphabetically, by Date and Price.&#x20;

## Default sort order

The default sort order for each collection is set in your Shopify Admin under Collections.&#x20;

![Shopify Admin - Collection sort options](https://894491487-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LovEU3LvzkJzFkXarYD%2F-MJZYIlR47rUBNt_IDdQ%2F-MJhkIMBwOcELJCNEMOy%2Fcollection-sort-admin.jpg?alt=media\&token=1413d44f-c4dc-4d2d-a073-b040b23bafe0)

Customers can change the default sort order by using the Collection Sorting drop-down feature in the theme.&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://pipeline.groupthought.com/pipeline-5/collections/collection-sorting.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
