Shophub DocsContact ↗Contact ↗ (opens in a new tab)
GitHubGitHub (opens in a new tab)
  • Introduction
    • Introduction
      • AnnouncementBanner
      • ButtonBlock
      • CustomBlock
      • FunnelBlock
      • GridWrapper
      • ImageBlock
      • ProductPreviewBlock
      • SmallFunnelWrapper
      • StatementRowBanner
      • TextBlock
      • UpsellBlock
      • VideoBlock
        • Alignment
        • Crossorigin
        • Fetch-Priority
        • FontTypeClassification
        • ItemTypename
        • OrderOption
        • PageType
        • Size
        • SortOption
        • TwAspectRatio
        • TwFontSize
        • TwFontWeight
        • Button Type
        • Referrer Policy
        • Timezones
      • Button
      • Display Link
      • Image
      • Background Image
      • Product
      • Text
        • NavTextContainer
      • Header
      • Footer
    • Relationships
    • Webpage Builder
    • Third party scripts
    • Cart
    • Product inventory tracking
    • Tax collections
    • Getting started
    • Constants
    • Shopify database sync
    • Database banner seeding
    • Connecting with Shopify
    • Bundled products
    • Shopify webhooks
    • Git hooks
    • Add a new banner
    • Make a banner nestable

On This Page

  • Example (Sorting by price)
Question? Give us feedback → (opens in a new tab)Edit this page
CMS
Objects
Enums
OrderOption

OrderOption

Enum to determine the order sequence of a sorted list. When used to order a product list, it is often used in combination with the SortOption.

enum OrderOption {
  asc = 'ASC',
  desc = 'DESC',
}

Example (Sorting by price)


Ascending (ASC)

  • Tomato

    4,99 €

    01.01.2020

  • Ananas

    12,99 €

    31.12.2020

  • Orange

    20,99 €

    02.05.2020

Descending (DESC)

  • Orange

    20,99 €

    02.05.2020

  • Ananas

    12,99 €

    31.12.2020

  • Tomato

    4,99 €

    01.01.2020

ItemTypenamePageType

© 2024 | Shophub | Berlin