private function _formatOrder()
    {
        $orders = array();

        if (isset($this->_order[DbInterface::ORDER_RAND])) {
            $orders[] = 'RAND()';
        } else {
            foreach ($this->_order as $field => $order) {
                $orders[] = "`$field` $order";
            }
        }

        return ' ORDER BY ' . implode(', ', $orders);
    }
private function _formatOrder()
    {
        $orders = array();

        if (isset($this->_order[DbInterface::ORDER_RAND])) {
            $orders[] = 'RAND()';
        } else {
            foreach ($this->_order as $field => $order) {
                $orders[] = "`$field` $order";
            }
        }

        return ' ORDER BY ' . implode(', ', $orders);
    }
private function _formatOrder ( ) { $ orders = array ( ) ; if ( isset ( $ this -> _order [ DbInterface :: ORDER_RAND ] ) ) { $ orders [ ] = 'RAND()' ; } else { foreach ( $ this -> _order as $ field => $ order ) { $ orders [ ] = "`$field` $order" ; } } return ' ORDER BY ' . implode ( ', ' , $ orders ) ; }
Format the order fields to be included into the query.

@return string
Format the order fields to be included into the query .