> For the complete documentation index, see [llms.txt](https://docs.agilecase.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agilecase.com/user-documentation/accounts-and-bills/sorting-bills.md).

# Sorting Bills

This lesson will show you how to sort through your bills in AgileCase.

### Sort options

<figure><img src="/files/FuNNI3OnzyCwsv09WqXk" alt="" width="201"><figcaption></figcaption></figure>

On the "Bills" tab, clicking the dropdown beside the "New Bill" button will open the sorting and export menu.

Here you can choose from a variety of sort options to filter the bills that you want to see.

You can view all of your bills or sort them by payment status—paid, not paid, or partially paid. You can also export your bills into CSV or PDF format.

### Exporting to CSV

<figure><img src="/files/I11Ycszw4QyIyDjx4XwV" alt=""><figcaption></figcaption></figure>

After choosing to export to CSV, you can choose the bills you want to export.

You can select a range of dates to see the bills created between them. You can also choose a system user and/or client name to filter the bills by.

Once you have set your criteria, click "Export" to download your bills in CSV format.

### Report in CSV

<figure><img src="/files/0nVrJFlP7KPvNMi9J9QY" alt=""><figcaption></figcaption></figure>

When downloaded, the report will open in Excel. When exported, the invoice will be presented in more depth to facilitate your accounting needs.


---

# 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://docs.agilecase.com/user-documentation/accounts-and-bills/sorting-bills.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.
