Admin API / Types

OrderSortField

Enum

Fields to sort orders by. Additional values may be added.

enum OrderSortField

Values

  • BUYER_NAME: Buyer first name, then last name, then username. Orders with no buyer account sort last in both directions.
  • CREATED_AT: Time the order was placed.
  • SUBTOTAL: Item subtotal, before shipping, tax and discounts.
  • UPDATED_AT: Time of the latest change to the order record. OrderWhereInput.updatedAt states what counts as a change.