> For the complete documentation index, see [llms.txt](https://help.adalo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.adalo.com/ja/component-basics/connecting-lists-and-forms-to-a-database/applying-filters-to-lists.md).

# リストの並べ替えとフィルタリング

特定のデータのサブセットのみをアプリに表示したい場合は、データフィルタを作成できます。

例えば、以前に取り組んでいたバケーションスポットを閲覧できるアプリを考えてみましょう。すべてのデータを含むTrips Collectionを作成し、その中の1つのプロパティが旅行が公開されているかどうかを示すTrue/Falseの基準であるとします。このアプリでは、公開されている旅行のみを表示したいとします。また、旅行を低コストから高コストの順に並べ替えたいとします。

![ステップ4と5](/files/b49ERDdIWArvmZPbQ1d1)

1. リストを挿入します
2. リストに表示したいデータベースコレクションを選択します
3. カスタムフィルタを挿入するには、「別のフィルタを追加」をクリックします
4. フィルタが依存するプロパティを選択します（この場合はPublic）
5. フィルタリングするプロパティの条件を選択します（True/False、Between、Includes、Excludesなど）
6. ソート方法を選択してリストを並べ替えます（この例では、コストが低い順から高い順）

フィルタリング後、プレビューには公開された旅行のみが表示されました。


---

# 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.adalo.com/ja/component-basics/connecting-lists-and-forms-to-a-database/applying-filters-to-lists.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.
