---
title: Fields and sorting
project: OpenReports
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/openreports/1-0/guides/fields-and-sorting/
updated: 2026-11-19T07:46:44.232Z
---

# Fields and sorting

> Choose the columns of a report, sort the rows and limit how many come back.

**Fields** sets the columns of the report and their order. **Sort** sets the order of the rows.

![The Group, Filter, Fields and Sort sections of a report](/files/JapUXi98s61f.webp)

## Add fields

1. In the report form, select **Fields:** (the green plus).
2. Choose a field from the list.
3. Repeat for each column you want.

The columns appear in the order you add them. To remove a field, select its red bin icon.

If a report has no fields, it shows every field of its view. When the report has a group, the list offers only the grouped fields and the number fields. See [Group and total](../group-and-total/).

## Sort the rows

1. Select **Sort:** and choose a field. It is added as **Descending**.
2. To change the direction, select the sort item and choose **Ascending** or **Descending**.

You can add more than one sort field. The first one decides first. Sort by fields that are also in **Fields**.

## Limit the rows

**Limit output to** is the largest number of rows the report returns. The default is `1000`. Raise it for longer reports.
