---
schema_version: "1"
id: 710057202c25091c23caeaf2ff9c32ce58de59e8e8c365a3ade96253c861306f
title: EmbeddedDatasourceSortOrder
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/embeddeddatasourcesortorder.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/embeddeddatasourcesortorder.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: baa9ae3909bad6b254819a19a14f409e20bddcd4b62f499e757106b61f57c6bf
---
_menu_ Types

INPUT\_OBJECT

# 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.

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

`   - input EmbeddedDatasourceSortOrder {  - # GraphQL field to sort on - field: [EmbeddedDatasourceOrderField](https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/embeddeddatasourceorderfield.doc.html)!  - # Order direction to sort output - direction: [OrderDirection](https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/orderdirection.doc.html)! - }   `

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

- [Query_Query root for Metadata GraphQL interface_](https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/query.doc.html "Query - Query root for Metadata GraphQL interface")

- [Sheet_A sheet contained in a published workbook._](https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/sheet.doc.html "Sheet - A sheet contained in a published workbook.")

- [Workbook_Workbooks are used to package up Tableau visualizations (which are called "sheets" in the Metadata API) and data models (which are called "embedded data sources" when they are owned by a workbook)._](https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/workbook.doc.html "Workbook - Workbooks are used to package up Tableau visualizations (which are called \"sheets\" in the Metadata API) and data models (which are called \"embedded data sources\" when they are owned by a workbook).")