---
schema_version: "1"
id: 52e1bf833fc5a87a4a6baa7b9a56f300129963af90a0cb5084f5ddc5ca1e71e7
title: DatabaseOrderField
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/databaseorderfield.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/databaseorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 9a9f57b701294142a0369e95bf488d15669ed99e24d5fdb67b00390daa32f5df
---
_menu_ Types

ENUM

# DatabaseOrderField

Enum for fields that can be used for sorting

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

`   - enum DatabaseOrderField {  - # 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 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 - }   `

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

- [DatabaseSortOrder_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/databasesortorder.doc.html "DatabaseSortOrder - 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.")