---
schema_version: "1"
id: bbc088efa6388f5a97797851552124a108d0c2dac3c1c8013b81547544e4d5bf
title: CloudFileSortOrder
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/cloudfilesortorder.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/cloudfilesortorder.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: f0e75c2e3386c736b184ea8d2c1ec9f0f68b13185dd2c8af74c5a698b6435864
---
_menu_ Types

INPUT\_OBJECT

# CloudFileSortOrder

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

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