MageSmith
INPUT_OBJECT Magento 2.4.9

ProductAttributeSortInput

Specifies the attribute to use for sorting search results and indicates whether the results are sorted in ascending or descending order. It's possible to sort products using searchable attributes with enabled 'Use in Filter Options' option

Declared or extended by: Catalog

Fields

relevance SortEnum

Sort by the search relevance score (default).

position SortEnum

Sort by the position assigned to each product.

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.