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

ENUM

# DataFieldOrderField

Enum for fields that can be used for sorting

## [_link_](#graphql-schema-definition) GraphQL Schema definition

`   - enum DataFieldOrderField {  - # Sort by dataCategory - DATA_CATEGORY  - # Sort by dataType - DATA_TYPE  - # Sort by id - ID  - # Sort by role - ROLE - }   `

## [_link_](#require-by) Require by

- [DataFieldSortOrder_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._](https://help.tableau.com/current/api/metadata_api/en-us/reference/datafieldsortorder.doc.html "DataFieldSortOrder - 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.")