JHtmlSearchtools::sort
Method to sort a column in a grid
Signature
public function sort(string
$title,
[string
$order = 'asc',
[string
$direction = 'asc',
[mixed
$selected = 0,
[string
$task = null,
[string
$new_direction = 'asc',
[string
$tip = '',
[string
$icon = null,
[string
$formName = 'adminForm']]]]]]]] )
Parameters
-
$title
- The link title
-
$order
- The order field for the column
-
$direction
- The current direction
-
$selected
- The selected ordering
-
$task
- An optional task override
-
$new_direction
- An optional direction for the new column
-
$tip
- An optional text shown as tooltip title instead of $title
-
$icon
- Icon to show
-
$formName
- Name of the form to submit
Returns
- string