# Filtering, Sorting, or Grouping Items

Filtering, sorting, and grouping are powerful tools that help users find and organize data more efficiently.&#x20;

Filtering allows users to narrow down a list of items based on specific criteria.&#x20;

Sorting helps users arrange items in a specific order.

Grouping helps users visually segregate the items based on a particular property.

{% hint style="info" %}
Grouping is only available on List Screens (View Items/Update Items).
{% endhint %}

{% hint style="info" %}
This is different from Notion databases filtering, sorting, or grouping because you can create multiple apps with different filters, sorts, or groups and provide it to different groups of users.
{% endhint %}

To filter or sort items, open the app builder. Go to the desired screen through the app preview. Click on "+ Add Filtering", "+ Add Sorting", "+ Add Grouping" to add filtering or sorting.

<figure><img src="https://4233028229-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ZqDXcVVffWUqEIZVhmn%2Fuploads%2FaTozlumRDmcm0bSeEmd8%2Ffilter-sort-1.png?alt=media&#x26;token=a5d7bab2-ad81-41f4-b725-12425cf35334" alt=""><figcaption></figcaption></figure>

### Filtering

To add filtering, click on "+ Add Filtering". This will add a default filter condition that you can customize further. You can select a database column, a filter operator, and a value to filter by. You can also apply "and" or "or" logic to the conditions to determine how these are conditions are joined together.

{% hint style="info" %}
You can create complex conditions with "and"/"or" operators. For example, *Task Status* is equal to *Done* and *Due Date* is *Today*.
{% endhint %}

### Sorting

To add sorting, click on "+ Add Sorting". This will add a default sort that you can customize further with the fields/columns to sort by. You can select the order, either ascending *(A → Z)* or descending *(Z → A)*, for each field.&#x20;

{% hint style="info" %}
Keep in mind that during sorting, the first condition would be first used to sort and the second condition would be further used to sort grouped items inside the first sort result.
{% endhint %}

That's it! Now can you filter or sort your items to view them in a more efficient way.

{% hint style="info" %}
It's important to note that when filtering items, the items are sent filtered from our servers, and the users only have access to the data visible on the app.
{% endhint %}

<figure><img src="https://4233028229-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ZqDXcVVffWUqEIZVhmn%2Fuploads%2FlejMCM0uBi5B8h24GWGt%2Ffilter-sort-2.png?alt=media&#x26;token=dab7e50c-a411-43a7-8b5d-d2ac9af8d06c" alt=""><figcaption></figcaption></figure>

### Grouping

To add grouping, click on "+ Add Grouping". This will add a default group that you can customize further with the column/property to sort by. You can select the sort order, either ascending *(A → Z)* or descending *(Z → A)* for the grouping property.

{% hint style="info" %}
Currently only one property can be used to group items.
{% endhint %}

<figure><img src="https://4233028229-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5ZqDXcVVffWUqEIZVhmn%2Fuploads%2FCAqM0qNao80W05FmMIpi%2FSCR-20250825-luhl.png?alt=media&#x26;token=1f238662-cdb7-498e-a8cd-7b4961ba3b5a" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Sorting and grouping work well together. The grouping takes priority and inside the groups, the items are sorted based on your sorting order.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.notionapps.com/customize-app/customize-a-screen/filtering-sorting-items.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
