---
schema_version: "1"
id: 4801c14fc9a1cf9f5f7049a121cc1166853437cb391ba24bb7468ff11c8e4b05
title: NodeSortOrder
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/nodesortorder.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/nodesortorder.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 3a97ccc58f0a6b54c22992862542b0b7bdeaa6cdb12dcaf302a4537f22d3a8d7
---
_menu_ Types

INPUT\_OBJECT

# NodeSortOrder

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

This element is not required by anyone