---
schema_version: "1"
id: 5c6593f490438b6bb92a41e1276b354b172312618550f212cab99c7d3ae9aed4
title: EmbeddedDatasourceOrderField
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/embeddeddatasourceorderfield.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/embeddeddatasourceorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 658eed81ac2f3bb8a4d78d60f23b2f48ca3305b09cb39e85ecb1ff29ae486d82
---
_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/v0.0/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.")