Schema Documentation

ProductsOrderByEnum

Description

Fields to order the Products connection by

Values
Enum ValueDescription

DATE

Order by publish date

IN

Preserve the ID order given in the IN array

MENU_ORDER

Order by the menu order value

MODIFIED

Order by last modified date

NAME_IN

Preserve slug order given in the NAME_IN array

ON_SALE_FROM

Order by date product sale starts

ON_SALE_TO

Order by date product sale ends

PARENT

Order by parent ID

PRICE

Order by product's current price

RATING

Order by product average rating

REGULAR_PRICE

Order by product's regular price

REVIEW_COUNT

Order by number of reviews on product

SALE_PRICE

Order by product's sale price

SLUG

Order by slug

TOTAL_SALES

Order by total sales of products sold
Example
"DATE"