---
schema_version: "1"
id: 0525a351f52d6d81245acccd4e2064a5aa4f96cb6e76ecb66b897d0f06099d32
title: HierarchyFieldOrderField
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/hierarchyfieldorderfield.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/hierarchyfieldorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 31dd0fb4f7c8b0d597a1dad1821d3206fb2e7a8a551e1ab77704a1cc06956651
---
_menu_ Types

ENUM

# HierarchyFieldOrderField

Enum for fields that can be used for sorting

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

`   - enum HierarchyFieldOrderField {  - # Sort by downstreamSheets count - DOWNSTREAM_SHEETS_COUNT  - # Sort by fields count - FIELDS_COUNT  - # Sort by id - ID  - # Sort by isHidden - IS_HIDDEN  - # Sort by name - NAME - }   `

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

- [HierarchyFieldSortOrder_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/hierarchyfieldsortorder.doc.html "HierarchyFieldSortOrder - 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.")