---
schema_version: "1"
id: 74f1217469cf7d635ebb8089644b569af2ef5d77558e76bbb2708caf0a9d14d9
title: CalculatedFieldOrderField
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/calculatedfieldorderfield.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/calculatedfieldorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 1f64ce2a0e18773cb8ebb5b5ca40744abefa4de7c7ff0f7e7755b307ce25856b
---
_menu_ Types

ENUM

# CalculatedFieldOrderField

Enum for fields that can be used for sorting

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

`   - enum CalculatedFieldOrderField {  - # Sort by downstreamSheets count - DOWNSTREAM_SHEETS_COUNT  - # Sort by fields count - FIELDS_COUNT  - # Sort by dataCategory - DATA_CATEGORY  - # Sort by dataType - DATA_TYPE  - # Sort by id - ID  - # Sort by isHidden - IS_HIDDEN  - # Sort by name - NAME  - # Sort by role - ROLE - }   `

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

- [CalculatedFieldSortOrder_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/calculatedfieldsortorder.doc.html "CalculatedFieldSortOrder - 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.")