Merchandisers can specify the order in which the products or SKUs appear in the results list. The only option provided out of the box, Score, uses relevance to place products or SKUs that have the highest relevancy score at the top of the list and consequently, those that have the lowest relevancy score at the bottom. You can, however, sort results by any meta-property that’s defined for the type of asset, product, or SKU, that’s been indexed. It may be beneficial to provide the same sorting mechanisms that your web site provides, so merchandisers can replicate the experience site visitors have.

For example, to provide inventory status, price, and response language as sort options for a configuration that displays only SKUs, update Search Testing Service located in the /atg/search/testing directory by setting the sortByPropertyNames property to:

stockAvailabilityStatus,childSKUs.price,language

For each property that you add, the Search Testing UI provides two entries in the Sort By control: one for descending order and one for ascending order. Only one sort option can be applied at a time. Regardless of the number of sorting options, the Score is always the default selection.