* key names of variable (which should be the same as the column name)
* value: ascending or descending
*
- * @param mixed $vars - assoc array as described above
+ * @param mixed $vars - assoc array as described above
* @param string $defaultSortOrder - order to sort
*
- * @return void
- * @access public
+ * @return \CRM_Utils_Sort
+ @access public
*/
function __construct(&$vars, $defaultSortOrder = NULL) {
$this->_vars = array();
$this->_currentSortDirection = $this->_vars[$this->_currentSortID]['direction'];
}
$this->_urlVar = self::SORT_ID;
- $this->_link = CRM_Utils_System::makeURL($this->_urlVar);
+ $this->_link = CRM_Utils_System::makeURL($this->_urlVar, TRUE);
$this->initialize($defaultSortOrder);
}
/**
* Universal callback function for sorting by weight
*
+ * @param $a
+ * @param $b
+ *
* @return array of items sorted by weight
* @access public
*/