Users can sort the columns by clicking on the header text link or the
When the page displays the first time, the initial sorting is done based on the URL parameters sortColumnName and sortDirection. If you do not pass these URL parameters, the rows display in the order they are retrieved from the database. You can pass up to 3 column names with the sortColumnName parameter and 3 directions with the sortDirection parameter. When the user opens the Sort by dialog box (by clicking If the user creates a custom table based on the system table for the table page, the sorting options selected by the user determine the default values for the Sort by dialog box. If the user clicks on one of the other column headers to sort, the system updates the page level sortColumnName setting to the new column. For pages that include columns with the type program or programHTMLOutput with complex logic, the sort process may take a while. You can set the Sortable setting on the column to false if needed. To define your own sorting mechanism, see Sorting Programs for Tables. |