> For the complete documentation index, see [llms.txt](https://help.brieftech.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.brieftech.ai/how-to-guides/index/sort-documents-in-index.md).

# Sort documents in the Document Index

Sort documents within Document Index sections by date, file name, or description.

In the Index tab, sort documents by date, description, or filename — all sections at once, or one on its own.

## Sort all sections at once

In the Document Index.

1. Open the <img src="https://2262431129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlnHu06wl3NH457iwjBmr%2Fuploads%2Fgit-blob-320692e120077fab01f6944df1edd4eec4881a4c%2Ftab-index.svg?alt=media" alt="Index tab" data-size="line"> tab.
2. Click <img src="https://2262431129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlnHu06wl3NH457iwjBmr%2Fuploads%2Fgit-blob-b912cd1830c2b96fcb2e3a555cd9d809382cf685%2Fbtn-apply-preset.svg?alt=media" alt="Apply preset" data-size="line"> in the toolbar.
3. Click **Sort all sections**.
4. Choose **Date**, **Description**, or **Filename**.

## Sort one section

In the Document Index, sort a single section from either its heading row or its column-header row:

* **From the heading row for that section** — click the **sort icon** (tooltip *Sort documents under heading*), or open the heading's **⋮** menu and choose <img src="https://2262431129-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlnHu06wl3NH457iwjBmr%2Fuploads%2Fgit-blob-c17b694e04d284a14e496497fd06dfde65d0de22%2Fbtn-sort-files-under-heading.svg?alt=media" alt="Sort Files Under Heading" data-size="line">, then choose **Date, File Name**, **File Name**, or **Description**.
* **From the column-header row** — hover the **Description** column header and click the **sort icon** (tooltip *Sort documents below*), or right-click the **column-header row** and choose **Sort Files**.

For exactly what each order does, see [Serial numbers and date formats](/reference/serial-numbers-and-date-formats.md#sort-order).

Once you sort, the new order is saved straight away and applies for everyone working on the matter: it becomes the saved order, serial numbers renumber to match, and the change carries through to the exported index and the generated bundle.

{% hint style="info" %}
**Sorting stays within each section.** Sorting reorders documents within each section only — it does not move documents across heading boundaries. You can drag rows manually after sorting, or sort again at any time.
{% endhint %}

## Related

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>From Document Index to court bundle</strong></td><td>How the index and the bundle share one source of truth.</td><td><a href="/concepts/index-and-court-bundle.md">From Document Index to court bundle</a></td></tr><tr><td><strong>Reorder documents and add structure</strong></td><td>Drag documents to reorder them in the Document Index, including moving them between sections and dragging multiple rows at once.</td><td><a href="/how-to-guides/index/reorder-documents-add-structure.md">Reorder documents and add structure</a></td></tr><tr><td><strong>Document Index presets</strong></td><td>The built-in Document Index presets and what each configures.</td><td><a href="/reference/index-presets.md">Document Index presets</a></td></tr><tr><td><strong>Prepare a List of Documents for Disclosure</strong></td><td>A guided, end-to-end walkthrough — take a set of documents from upload to a finished disclosure package: a ZIP archive containing a Word index, an Excel index, and every document renamed by serial number, date, and description.</td><td><a href="/get-started/prepare-disclosure-list.md">Prepare a List of Documents for Disclosure</a></td></tr><tr><td><strong>Manage headings in the Document Index</strong></td><td>Add, rename, move, sort, indent, and delete headings in the Document Index, or generate them automatically from your folder structure.</td><td><a href="/how-to-guides/index/manage-index-headings.md">Manage headings in the Document Index</a></td></tr></tbody></table>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.brieftech.ai/how-to-guides/index/sort-documents-in-index.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
