JHtmlGrid::sort
Method to sort a column in a grid
Signature
public function sort(string
$title,
[string
$order = 'asc',
[string
$direction = 'asc',
[string
$selected = 0,
[string
$task = null,
[string
$new_direction = 'asc',
[string
$tip = '']]]]]] )
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
Returns
- string