Swat/SwatTableView.php
public function setDefaultOrderbyColumn(
        SwatTableViewOrderableColumn $column,
        $direction = SwatTableViewOrderableColumn::ORDER_BY_DIR_DESCENDING
    ) {
        if ($column->view !== $this) {
            throw new SwatException(
                'Can only set the default orderby on ' .
                    'orderable columns in this view.'
            );
        }

        // this method sets properties on the table-view
        $column->setDirection($direction);
    }
public function setDefaultOrderbyColumn(
        SwatTableViewOrderableColumn $column,
        $direction = SwatTableViewOrderableColumn::ORDER_BY_DIR_DESCENDING
    ) {
        if ($column->view !== $this) {
            throw new SwatException(
                'Can only set the default orderby on ' .
                    'orderable columns in this view.'
            );
        }

        // this method sets properties on the table-view
        $column->setDirection($direction);
    }
public function setDefaultOrderbyColumn ( SwatTableViewOrderableColumn $ column , $ direction = SwatTableViewOrderableColumn :: ORDER_BY_DIR_DESCENDING ) { if ( $ column -> view !== $ this ) { throw new SwatException ( 'Can only set the default orderby on ' . 'orderable columns in this view.' ) ; } // this method sets properties on the table-view $ column -> setDirection ( $ direction ) ; }
Sets a default column to use for ordering the data of this table-view

@param SwatTableViewOrderableColumn the column in this view to use
for default ordering
@param integer $direction the default direction of the ordered column.

@throws SwatException

@see SwatTableView::$default_orderby_column
Sets a default column to use for ordering the data of this table - view