---
schema_version: "1"
id: 11e63d2bf72beae498b2748349a907587e4999a6bc7862078ae5797011016852
title: EmbeddedDatasourceSortOrder
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/embeddeddatasourcesortorder.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/embeddeddatasourcesortorder.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: bcab29523993143295a930bc73153b485619955e22b2c017b3381887b0409bdc
---
_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/current/api/metadata_api/en-us/reference/embeddeddatasourceorderfield.doc.html)!  - # Order direction to sort output - direction: [OrderDirection](https://help.tableau.com/current/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/current/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/current/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/current/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).")