多维表格
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.5 KiB

---
title: 'Sorting records'
description: 'Learn how to sort records in NocoDB.'
tags: ['Table operations', 'Sort', 'Gallery view', 'Kanban view', 'Grid view']
keywords : ['NocoDB table', 'sort', 'sort records']
---
Sorting enables you to arrange your data alphabetically (A → Z) or (Z → A) for text based types and in ascending or descending order for numerical types. NocoDB supports nested sorting, allowing you to select fields and the order in which to apply nested sorting.
### Adding or Editing Sort
1. Click the `Sort` button in the toolbar menu.
2. Choose the `Field` to sort by.
3. Configure the sorting `Direction` : ascending or descending
![Sort Field](/img/v2/table-operations/sort-1.png)
![Sort Direction](/img/v2/table-operations/sort-2.png)
- You can configure multiple fields for subsequent-level sorting.
![Nested Sorting](/img/v2/table-operations/sort-3.png)
:::info
Field configured at the top will be used for the first-level sorting, followed by subsequent fields in a top-down order
:::
### Deleting Sort
- Click the `Sort` button in the toolbar.
- Click on the bin icon to the right of the sort you wish to delete.
![Delete Sorting](/img/v2/table-operations/sort-4.png)
### Related topics
- [Field Operations](/table-operations/field-operations)
- [Filter](/table-operations/filter)
- [GroupBy](/table-operations/group-by)
- [Row Height](/table-operations/row-height)
- [Quick Search](/table-operations/search)
- [Download](/table-operations/download)