---
schema_version: "1"
id: 558965ef88732c447c2ea8dbb43ec5d0e199239592084313e434728873746faa
title: CustomSQLTableOrderField
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/customsqltableorderfield.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/customsqltableorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 9f7439833f683bee7435124812d119bce428e964f33a19c7adc62d016cd4a376
---
_menu_ Types

ENUM

# CustomSQLTableOrderField

Enum for fields that can be used for sorting

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

`   - enum CustomSQLTableOrderField {  - # 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 isUnsupportedCustomSql - IS_UNSUPPORTED_CUSTOM_SQL  - # Sort by name - NAME - }   `

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

- [CustomSQLTableSortOrder_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/v0.0/api/metadata_api/en-us/reference/customsqltablesortorder.doc.html "CustomSQLTableSortOrder - 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.")