---
schema_version: "1"
id: 3fd4891f9916c3dca707dcf750924ca3c8713ebb6c276d00d7937ba4995154f3
title: EmbeddedDatasourceOrderField
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/embeddeddatasourceorderfield.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/embeddeddatasourceorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: b7fdca6943ff7cd36be56831a6950e4617020410f591812c53a9ff6665e9cb73
---
_menu_ Types

ENUM

# EmbeddedDatasourceOrderField

Enum for fields that can be used for sorting

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

`   - enum EmbeddedDatasourceOrderField {  - # Sort by downstreamOwners count - DOWNSTREAM_OWNERS_COUNT  - # Sort by downstreamWorkbooks count - DOWNSTREAM_WORKBOOKS_COUNT  - # Sort by fields count - FIELDS_COUNT  - # Sort by containsUnsupportedCustomSql - CONTAINS_UNSUPPORTED_CUSTOM_SQL  - # Sort by id - ID  - # Sort by name - NAME - }   `

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

- [EmbeddedDatasourceSortOrder_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/embeddeddatasourcesortorder.doc.html "EmbeddedDatasourceSortOrder - 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.")