---
schema_version: "1"
id: 047b3562f556c98927b2b157ca5994290fa8ea3b9548372652d484c71cfa64c4
title: ColumnFieldSortOrder
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/columnfieldsortorder.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/columnfieldsortorder.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: af5742837fc046c56fd9eb984fb7783b69404da52c5b0b7fd29842f921966e13
---
_menu_ Types

INPUT\_OBJECT

# ColumnFieldSortOrder

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 ColumnFieldSortOrder {  - # GraphQL field to sort on - field: [ColumnFieldOrderField](https://help.tableau.com/current/api/metadata_api/en-us/reference/columnfieldorderfield.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

- [Column_GraphQL type for a table column_](https://help.tableau.com/current/api/metadata_api/en-us/reference/column.doc.html "Column - GraphQL type for a table column")

- [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")