public static function bindSort(\Criteria $criteria, $sort) {
        $direction = $sort['direction'];
        switch($direction) {
            case self::SORT_DIRECTION_DESC:
                $criteria->addDescendingOrderByColumn($sort['column']);
                break;
            case self::SORT_DIRECTION_ASC:
                $criteria->addAscendingOrderByColumn($sort['column']);
                break;
            default:
                throw new RuntimeException('Unsupport Ext direct sort direction:'.$direction);
        }
    }
public static function bindSort(\Criteria $criteria, $sort) {
        $direction = $sort['direction'];
        switch($direction) {
            case self::SORT_DIRECTION_DESC:
                $criteria->addDescendingOrderByColumn($sort['column']);
                break;
            case self::SORT_DIRECTION_ASC:
                $criteria->addAscendingOrderByColumn($sort['column']);
                break;
            default:
                throw new RuntimeException('Unsupport Ext direct sort direction:'.$direction);
        }
    }
public static function bindSort ( \ Criteria $ criteria , $ sort ) { $ direction = $ sort [ 'direction' ] ; switch ( $ direction ) { case self :: SORT_DIRECTION_DESC : $ criteria -> addDescendingOrderByColumn ( $ sort [ 'column' ] ) ; break ; case self :: SORT_DIRECTION_ASC : $ criteria -> addAscendingOrderByColumn ( $ sort [ 'column' ] ) ; break ; default : throw new RuntimeException ( 'Unsupport Ext direct sort direction:' . $ direction ) ; } }
bind Ext direct sort to Propel Criteria

@param \Criteria $criteria
@param $sort
array(
'direction' => 'DESC',
'column' => UserPeer::ID
)
@throws RuntimeException
@return void
bind Ext direct sort to Propel Criteria