---
schema_version: "1"
id: 4829550e4c67761ee746b2acf3c254eb36911ff022d47d9f54b91c2370aee8d0
title: ViewOrderField
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/vieworderfield.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/vieworderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 870b20a4a4a1696ab86cb717aa0e8d935aa80c8ddb4b91917e695f82ad7732c3
---
_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/current/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.")