Configuring the sort options for the set of locations

You can configure the Map component to allow end users to change the sort order for a set of locations. If you do not allow end users to select the sort order, then you can select an attribute to sort by.

To configure the sorting options for the set of locations:

  1. Under Sort Options, to allow end users to set the sort order, check the Enable end user sorting controls check box. The box is checked by default.

    To not allow end users to control the sort order, uncheck the checkbox.

  2. If the checkbox is not checked, then end users cannot change the sort order.

    The Sort Options section contains a single field.

    Sort Options section for a location set on the Map component edit view with end user sorting disabled but no sorting attribute selected

    To determine how the list of locations is sorted, drag an attribute from the Attribute Groups list to the Sort Options field.

    After you drop the attribute, to determine the sort order:
    • To sort by the selected attribute in ascending order, click the up arrow. This is the default.
    • To sort by the selected attribute in descending order, click the down arrow.

    To remove the attribute, click the delete icon.

    To replace the attribute with a different attribute, drag a different attribute from the Attributes Groups, then drop it on top of the currently selected attribute.

  3. If the sorting checkbox is checked, then the Sort Options section is updated to allow you to provide a list of attributes end users can use to sort the list.

    To add an attribute, drag the attribute from the Attribute Groups list to the Sort Options table.

  4. After selecting the list of attributes, to configure the sorting:
    Sort Options section for a location set on the Map component edit view with end user sorting on and sorting attributes selected

    To determine the order of the attributes in the Sort by drop-down list, drag each row up and down in the list.

    For the attribute you want to use for the default sort order, click the Default radio button next to the attribute.
    • To sort by that attribute in ascending order, click the up arrow.
    • To sort in descending order, click the down arrow.

    You use the Sort Description drop-down list to configure the text that displays next to the attribute in the Sort by list. The list includes one entry for sorting in ascending order, and one for descending order.

    Top right of the Map component end user view showing the Sort by drop-down list

    From the Sort Description drop-down list, select the set of values you want to use for that attribute.

    To create your description for ascending and descending order, select create custom description.

    On the Create Custom Description dialog:

    1. In the first field, marked with the up arrow, type the text to use to indicate ascending order.
    2. In the second field, marked with the down arrow, type the text to use to indicate descending order.
    3. Click Save.
  5. To remove an attribute from the list, click the delete icon for that attribute.