---
schema_version: "1"
id: f1629625e656bfea6e97f9d71bc36f926ad092d449c74a566ca371c4d1dc1b5e
title: DataFieldOrderField
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/datafieldorderfield.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/datafieldorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 08aa6ccee6b380d1b0dd99654fe3863fdc51273f8178eeda778853aa2d452b6c
---
_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/v0.0/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.")