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

INPUT\_OBJECT

# GenericLabelSortOrder

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