---
schema_version: "1"
id: 0b3082a53147deaaf5756f84ab62ab62a07f1b5cd1fd0fa77b3f0234d1c6c160
title: DataCloudSortOrder
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/datacloudsortorder.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/datacloudsortorder.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 2376d0af457fdadbc38abbf2d86efdef8f4f80196db75a8e78b4fc7871c3f83b
---
_menu_ Types

INPUT\_OBJECT

# DataCloudSortOrder

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 DataCloudSortOrder {  - # GraphQL field to sort on - field: [DataCloudOrderField](https://help.tableau.com/current/api/metadata_api/en-us/reference/datacloudorderfield.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")