Sort Results

The Sort tag provides options to sort the response on different fields.

Usage

This example shows how to add an option to sort on a price field. It also shows how the label for the price field can be adjusted or changed using the field=Label notation:

<search:sort query="${query}" fields="price=Price" defaultLabel="Score" />

Sorting