---
schema_version: "1"
id: 7767d5daeaea39c8fe3dfdd8813d400768acd6cb2a47d1070f5ef123a9642ce4
title: LensOrderField
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/lensorderfield.doc.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/lensorderfield.doc.html
source_site: help.tableau.com
content_type: documentation
content_hash: dd91f9bd0ec7beb26273afac0cbd5242b8372095acfd09d9c939d5bfc83be2d2
---
_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/v0.0/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.")