code/libraries/joomlatools/library/database/query/select.php
public function order($columns, $direction = 'ASC')
    {
        foreach ((array) $columns as $column)
        {
            $this->order[] = array(
                'column'    => $column,
                'direction' => $direction
            );
        }

        return $this;
    }
public function order($columns, $direction = 'ASC')
    {
        foreach ((array) $columns as $column)
        {
            $this->order[] = array(
                'column'    => $column,
                'direction' => $direction
            );
        }

        return $this;
    }
public function order ( $ columns , $ direction = 'ASC' ) { foreach ( ( array ) $ columns as $ column ) { $ this -> order [ ] = array ( 'column' => $ column , 'direction' => $ direction ) ; } return $ this ; }
Build the order clause

@param   array|string $columns   A string or array of ordering columns
@param   string       $direction Either DESC or ASC
@return  $this
Build the order clause