---
schema_version: "1"
id: fe27b5925d9c0f1b1da05d7ed2198b95ac2b8ec5c6c9b6a0b573edc1ec5baadc
title: ViewOrderField
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/vieworderfield.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/vieworderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: d0d6f802566e89621605b34c2baa8b5d19164792a3606d503777cae754a949e9
---
_menu_ Types

ENUM

# ViewOrderField

Enum for fields that can be used for sorting

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

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

- [ViewSortOrder_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/viewsortorder.doc.html "ViewSortOrder - 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.")