---
schema_version: "1"
id: 9eec0de23a806254470be8009a5a1bef37b77014b9670dae1bd75391fa15efcf
title: LensFieldOrderField
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/lensfieldorderfield.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/lensfieldorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 12022430fadbe8ad0e5a4744498f992d87fa05b0a22edcb1c189a117b22d0265
---
_menu_ Types

ENUM

# LensFieldOrderField

Enum for fields that can be used for sorting

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

`   - enum LensFieldOrderField {  - # Sort by id - ID  - # Sort by name - NAME - }   `

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

- [LensFieldSortOrder_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/lensfieldsortorder.doc.html "LensFieldSortOrder - 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.")