---
schema_version: "1"
id: 79d2d15cddc2d26f06a87d6270e78c213db5897207cf40810145388394174f2c
title: CanHaveLabelsSortOrder
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/canhavelabelssortorder.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/canhavelabelssortorder.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 4c0df578daba304c8507fcbfcd70edcf9c6073853f97c78d30766d8fd7942922
---
_menu_ Types

INPUT\_OBJECT

# CanHaveLabelsSortOrder

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