---
schema_version: "1"
id: 5175b0df2c0c0194d375923dcb6687b6a070c63322c5737a57efeeddb5a434c9
title: DatabaseTableOrderField
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/databasetableorderfield.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/databasetableorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 8c568e48c4dcf889b106e38797a10628865f8cfee1d7c63693db1afab57e3746
---
_menu_ Types

ENUM

# DatabaseTableOrderField

Enum for fields that can be used for sorting

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

`   - enum DatabaseTableOrderField {  - # Sort by columns count - COLUMNS_COUNT  - # Sort by downstreamDashboards count - DOWNSTREAM_DASHBOARDS_COUNT  - # Sort by downstreamDatasources count - DOWNSTREAM_DATASOURCES_COUNT  - # Sort by downstreamVirtualConnections count - DOWNSTREAM_VIRTUAL_CONNECTIONS_COUNT  - # Sort by downstreamWorkbooks count - DOWNSTREAM_WORKBOOKS_COUNT  - # Sort by connectionType - CONNECTION_TYPE  - # Sort by fullName - FULL_NAME  - # Sort by hasActiveWarning - HAS_ACTIVE_WARNING  - # Sort by id - ID  - # Sort by isCertified - IS_CERTIFIED  - # Sort by isEmbedded - IS_EMBEDDED  - # Sort by luid - LUID  - # Sort by name - NAME  - # Sort by projectName - PROJECT_NAME  - # Sort by schema - SCHEMA - }   `

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

- [DatabaseTableSortOrder_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/databasetablesortorder.doc.html "DatabaseTableSortOrder - 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.")