# Sort Fields

Indexing a Microapp is used to quickly locate data without having to search every row. Indexes can be created using one or more fields and provide efficient access of ordered records.

A task list that is sorted in chronological order is an example of using a sorted Microapp. The Microapp contains a field with the date/time of the assignment. This can specified as the sort field in asscending order. The Microapp will then display the rows ordered by date and time.

The tutotial on Microapp to Microapp relationships illustrates another use of sort fields.

Sort Fields are specified in a Microapp using the Properties/Results tab.

<figure><img src="/files/Rtw6SteKmVWonDoRgYB9" alt=""><figcaption></figcaption></figure>

1 to 3 sort fields are available for a Microapp. Sort Field 1 is the primary field, it is used first when creating the sort index for the Microapp. If additonal fields are specified then a compound index is created.

The Sort Geometry Field is used to specify the location field that should be used to create a spatial index.

***


---

# 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.buzzy.buzz/the-building-blocks/datatables-fields-and-data/sort-fields.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.
