> For the complete documentation index, see [llms.txt](https://docs.ins-pi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ins-pi.com/freelucy/work-in-the-app/view-controls.md).

# Filter and sort with View Controls

View Controls is the drawer for shaping what you see: hide relationships by type or table, group them, and sort them. It applies to [Flow](/freelucy/views-in-depth/flow.md) and [List](/freelucy/views-in-depth/list.md); [Classic](/freelucy/views-in-depth/classic.md) shows relationships spatially on the canvas instead.

<figure><img src="/files/2wA0wFeP0zN6QQLmH8bo" alt="" width="188"><figcaption></figcaption></figure>

## Open View Controls

Open the drawer from the sliders icon pinned to the edge of the editor, opposite the Data Hub. A dot on the icon means a filter is active even while the drawer is closed. On narrow screens, View Controls opens as a full overlay and closes the Data Hub if it was open, since only one drawer can be open at a time there.

## Group and sort

* **Group by** collects relationships under collapsible headers. Flow groups by **Type** or **Class**; List adds **Direction**.
* **Sort by** orders relationships by **Name**, **Type**, or **Class**; List adds sorting by **recently added**.

Both apply to every column or section in the view at once.

## Filter by relationship type or table

* **Relationship types** are shown as chips, one per type present in your current relationships. A filled chip is visible; an outlined chip is hidden. Click a chip to toggle it — you can hide as many types as you like.
* **All tables** lists every table represented, each with a checkbox and a count of how many relationships belong to it. Uncheck a table to hide its relationships. **Select all** restores every table regardless of its current state.

Type and table filters combine: a relationship stays visible only if both its type and its table are checked. The count next to each table is the total for that table in the view, not a live count of what is currently visible.

{% hint style="info" %}
The counts shown next to each table don't shrink as you filter — they always reflect how many relationships exist for that table, so you can tell what a filter is hiding.
{% endhint %}

## Reset

Once you have any filter active, or grouping or sorting off their defaults, a **Show all** option appears to clear the type and table filters in one click. The **reset** icon in the drawer's header goes further: it also returns grouping to **None** and sorting to **Name**. Reset is disabled when there is nothing to reset.

***

## What's next

* [Flow view](/freelucy/views-in-depth/flow.md)
* [List view](/freelucy/views-in-depth/list.md)
* [Find records with the Data Hub](/freelucy/work-in-the-app/data-hub.md)


---

# 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.ins-pi.com/freelucy/work-in-the-app/view-controls.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.
