> 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](https://797861279-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4EFNSNZLMs5AZ70x2P33%2Fuploads%2Fgit-blob-7557b3170928c19170133640ea8993920bb6ea40%2FScreen%201%20Sorting%20and%20Filtering%20\(1\).gif?alt=media)

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

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

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