---
schema_version: "1"
id: 1332762df616c75b3fd5040f0226317cd8a18a0142731d8c0512e60ae5bdda7d
title: TableOrderField
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/tableorderfield.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/tableorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: b9ced477dc55135b433475f5a3c0c59279c052bbe4c4a84589b05f8ac3885de2
---
_menu_ Types

ENUM

# TableOrderField

Enum for fields that can be used for sorting

## [_link_](#graphql-schema-definition) GraphQL Schema definition

`   - enum TableOrderField {  - # Sort by columns count - COLUMNS_COUNT  - # Sort by downstreamDashboards count - DOWNSTREAM_DASHBOARDS_COUNT  - # Sort by downstreamDatasources count - DOWNSTREAM_DATASOURCES_COUNT  - # Sort by downstreamWorkbooks count - DOWNSTREAM_WORKBOOKS_COUNT  - # Sort by id - ID  - # Sort by name - NAME - }   `

## [_link_](#require-by) Require by

- [TableSortOrder_Sort by given fields. The sort orders defined first in the list will take priority. If there are no given sort orders or a tie on the final sorted field then the resulting set will be sorted by ID in ascending order._](https://help.tableau.com/current/api/metadata_api/en-us/reference/tablesortorder.doc.html "TableSortOrder - Sort by given fields. The sort orders defined first in the list will take priority. If there are no given sort orders or a tie on the final sorted field then the resulting set will be sorted by ID in ascending order.")