---
schema_version: "1"
id: 1465158512d7df0688840dfdc98d78f54d14e5d0ffe9c889d48099c3828a38d5
title: SetFieldOrderField
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/setfieldorderfield.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/setfieldorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: d9d4e44cbdba1ca04fbbebc28b99f19e04694c0091f3c36bd019a2e429e45fbb
---
_menu_ Types

ENUM

# SetFieldOrderField

Enum for fields that can be used for sorting

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

`   - enum SetFieldOrderField {  - # 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

- [SetFieldSortOrder_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/setfieldsortorder.doc.html "SetFieldSortOrder - 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.")