#### Sort

The Sort web action enables you to sort the records in a banded object.

To bind the Sort web action to a web control:

1. Insert the required web control into your report by dragging the corresponding button from the Toolbox panel.
2. Right-click the web control, and then select Display Type from the shortcut menu.
3. In the Web Behaviors box of the Display Type dialog, choose an event from the Events column, and then click in the Actions column.
4. In the Web Action List dialog, select Sort and click OK. The Sort - Web Action Builder dialog appears. See the dialog.

5. From the Get Input from drop-down list, specify where to get the web control, which may be a form, or other in report.
6. From the Apply Action to drop-down list, select a banded object whose records will be sorted.
7. In the Sort on column, specify the field on which to sort the records. The field may be a column in the banded object, or be specified by the value of a web control.
8. Specify the sort value. The value may be Ascending or Descending, or be the value of a web control.
9. If necessary, click to add a new sort condition.

   To delete a sort condition, click . To adjust the order of the sort conditions, click or .

10. Click OK to accept the settings.