---
schema_version: "1"
id: 02c4e0672ae634bd050d5e69881694ea72abe273fefcd77a043a6659db6e6701
title: SheetOrderField
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/sheetorderfield.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/sheetorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 33e6931c52299c16fe4d8aa5a6be68387a92811c6a2073b21ecd911edfaa46b6
---
_menu_ Types

ENUM

# SheetOrderField

Enum for fields that can be used for sorting

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

`   - enum SheetOrderField {  - # Sort by datasourceFields count - DATASOURCE_FIELDS_COUNT  - # Sort by sheetFieldInstances count - SHEET_FIELD_INSTANCES_COUNT  - # Sort by worksheetFields count - WORKSHEET_FIELDS_COUNT  - # Sort by documentViewId - DOCUMENT_VIEW_ID  - # Sort by id - ID  - # Sort by luid - LUID  - # Sort by name - NAME  - # Sort by path - PATH - }   `

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

- [SheetSortOrder_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/sheetsortorder.doc.html "SheetSortOrder - 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.")