Returns the sort direction, checking first if it is specified in the URL,
then returning the value stored in prefs.
public getSortDir ( string $view ) : integer | ||
$view | string | The view name, used to identify preference settings for sorting. |
return | integer | The sort direction, 0 = ascending, 1 = descending. |