public function setOrder()
    {
        // set order position if exist
        $order = [];
        foreach ($this->data['order'] as $alias => $params) {

            $order = array_flip($order);

            if (empty($params) === false) {

                foreach ($params as $field => $sort) {
                    $order[] = $alias . '.' . $field . ' ' . $sort;
                }
            }
        }

        $this->builder->orderBy($order);

        return null;
    }
public function setOrder()
    {
        // set order position if exist
        $order = [];
        foreach ($this->data['order'] as $alias => $params) {

            $order = array_flip($order);

            if (empty($params) === false) {

                foreach ($params as $field => $sort) {
                    $order[] = $alias . '.' . $field . ' ' . $sort;
                }
            }
        }

        $this->builder->orderBy($order);

        return null;
    }
public function setOrder ( ) { // set order position if exist $ order = [ ] ; foreach ( $ this -> data [ 'order' ] as $ alias => $ params ) { $ order = array_flip ( $ order ) ; if ( empty ( $ params ) === false ) { foreach ( $ params as $ field => $ sort ) { $ order [ ] = $ alias . '.' . $ field . ' ' . $ sort ; } } } $ this -> builder -> orderBy ( $ order ) ; return null ; }
Setup orders positions to Builder

@return null
Setup orders positions to Builder