---
schema_version: "1"
id: 4192b0541ccea0e9acb1cc81d0da563a0ae4ec24898a5cff7cc47ec28d3f8da3
title: PublishedDatasourceOrderField
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/publisheddatasourceorderfield.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/publisheddatasourceorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 25042155ecafcff94a4aedca0810bd8c9ebe3e051ae107613b1583a9c91dd226
---
_menu_ Types

ENUM

# PublishedDatasourceOrderField

Enum for fields that can be used for sorting

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

`   - enum PublishedDatasourceOrderField {  - # Sort by downstreamOwners count - DOWNSTREAM_OWNERS_COUNT  - # Sort by downstreamSheets count - DOWNSTREAM_SHEETS_COUNT  - # Sort by downstreamWorkbooks count - DOWNSTREAM_WORKBOOKS_COUNT  - # Sort by fields count - FIELDS_COUNT  - # Sort by owner count - OWNER_COUNT  - # Sort by containerName - CONTAINER_NAME  - # Sort by containsUnsupportedCustomSql - CONTAINS_UNSUPPORTED_CUSTOM_SQL  - # Sort by hasActiveWarning - HAS_ACTIVE_WARNING  - # Sort by id - ID  - # Sort by isCertified - IS_CERTIFIED  - # Sort by luid - LUID  - # Sort by name - NAME  - # Sort by projectName - PROJECT_NAME  - # Sort by vizportalUrlId - VIZPORTAL_URL_ID - }   `

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

- [PublishedDatasourceSortOrder_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/publisheddatasourcesortorder.doc.html "PublishedDatasourceSortOrder - 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.")