---
schema_version: "1"
id: 898aac300d06763ff68d3e4d60825f7c56078a4a1be1866ac32ee41c9afa5d4b
title: SheetOrderField
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/sheetorderfield.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/sheetorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 2cc13e9a6231d425079409f1156de688c95e3e4c5cd52d6ffafaca8c20e264f5
---
_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/current/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.")