Adding Sort Criteria With the .NET Interface Editor
Example: In a .NET search interface for a CRM system such as Salesforce, you can use the syssfpriority field to sort sales opportunities by priority.
To add a sort field with the .NET Interface Editor
-
Access the Coveo .NET Front-End Interface Editor (see Opening the .NET Interface Editor).
-
Select the Search Interfaces tab.
-
In the Current Interface drop-down list, select the interface for which you want to add sort criteria.
-
Select the Fields menu.
-
In the navigation panel on the left, select Sort Fields.
-
Next to Fields to Use for Sorting, click Add New.
-
Under Edit Sort Field:
-
In the Title box:
-
Enter the English text that appears as the Sort By criteria label at the top of the search results in the search interface.
-
Click the
button next to the box to open a dialog box where you can enter the label translated for the other supported languages.
-
-
In the Field to Sort On drop-down list, select the field on which to perform the sorting.
Note: When the field on which you want to perform the sort does not appear in the drop-down list, you must first make it available to sort on (see Adding a Sorting Field).
-
Select the Sort in descending order check box to sort in the reverse order by default.
Note: In the search interface, the end-users can always click the label to change the sort order.
-
Click OK.
-