How can I control the order of products shown in search results in the Catalog Preview for Quotes in the Industries LWC CPQ?
By default, the product list is sorted alphabetically using Product2.Name ASC. However, this behavior can be overridden by passing the sortBy parameter to the GetCartsProducts service. The parameter supports both _ASC and _DESC suffixes.
For example:
Product2.Name_DESC → ORDER BY Product2.Name DESC
Product2.Name_ASC → ORDER BY Product2.Name ASC
Product2.CustomField__c_ASC → ORDER BY Product2.CustomField__c ASC
Sample API : /services/apexrest/{namespace}/v2/cpq/carts/{cart_ID}/products?sortBy=Product2.Name_ASC
005389214

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.