---
schema_version: "1"
id: 43f53f8155e0079c51c3d680a2976dd7de1fdf9ce29d93c793843187b0bd8d1f
title: DatasourceFieldOrderField
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/datasourcefieldorderfield.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/datasourcefieldorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 82f3bde4650f2395439b33d7d2e4de07a065b2d38f99ca1471b120e418163d99
---
_menu_ Types

ENUM

# DatasourceFieldOrderField

Enum for fields that can be used for sorting

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

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

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

- [DatasourceFieldSortOrder_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/datasourcefieldsortorder.doc.html "DatasourceFieldSortOrder - 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.")