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);
        }
    }