API17:JHtmlGrid::sort
From Joomla! Documentation
JHtmlGrid::sort
Description
public static function sort (
$title
$order
$direction= 'asc'
$selected=0
$task=NULL
$new_direction='asc'
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $title | string | The link title | |
| $order | string | The order field for the column | |
| $direction | string | 'asc' | The current direction |
| $selected | string | 0 | The selected ordering |
| $task | string | NULL | An optional task override |
| $new_direction | string | 'asc' | An optional direction for the new column |
- Returns string
- Defined on line 68 of libraries/joomla/html/html/grid.php
See also
JHtmlGrid::sort source code on BitBucket
Class JHtmlGrid
Subpackage Html- Other versions of JHtmlGrid::sort
User contributed notes
Code Examples