---
schema_version: "1"
id: 82d58ed4bc2be0834aa7d9c262e558a711dc1f5c9ea42b02909293509a13e352
title: LensOrderField
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/lensorderfield.doc.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/lensorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: 7c4928e2ddc76c1ca805ebfc33bb08dc5bc15a3fd5dcaa0623671594c03fa226
---
_menu_ Types

ENUM

# LensOrderField

Enum for fields that can be used for sorting

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

`   - enum LensOrderField {  - # Sort by fields count - FIELDS_COUNT  - # Sort by owner count - OWNER_COUNT  - # Sort by id - ID  - # Sort by luid - LUID  - # Sort by name - NAME  - # Sort by vizportalUrlId - VIZPORTAL_URL_ID - }   `

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

- [LensSortOrder_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/lenssortorder.doc.html "LensSortOrder - 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.")