---
schema_version: "1"
id: 1514f18b7bb19c0e6e1f250c056cb47a643a0652cb50b31a5ac203aaa5ca1519
title: TableauSiteSortOrder
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/tableausitesortorder.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/tableausitesortorder.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 58d1a9f0ce27efb0092606f87d6cf52c0916e05699c906347d4c74aca8cdda22
---
_menu_ Types

INPUT\_OBJECT

# TableauSiteSortOrder

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 TableauSiteSortOrder {  - # GraphQL field to sort on - field: [TableauSiteOrderField](https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/tableausiteorderfield.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")