The default SortBy functionality can be modified within Template JS by overriding the default Script block. Additional supported options can be added as well as edits to the default labeling.
See : for details on preparing for Klevu JS overriding
See : An in-action example and the source code on the Klevu CodeSandbox
Supported options for product sorting must be supplied at the product level
- price / sale_price
- id / date* (for newness)
*Please see this support article for important information about sorting by newness.
Default combination of Klevu A.I. and merchandising configuration
Sort the results by the salePrice value of each record
Sort the results by the name of each record, in alphabetical order
Sort the results by each record's average rating, if this data has been indexed in your store
Sort your records based on their published date.
See : Klevu API Documentation for available Sorting Options
The SortBy options script block can be modified by Template override