src/Resources/DocumentDbTable.php
private function cleanOrderBy($table, $orderBy)
    {
        if (!empty($orderBy)) {
            $orderByArray = explode(',', $orderBy);
            foreach ($orderByArray as $k => $order) {
                $orderByArray[$k] = $table . '.' . $order;
            }
            $orderBy = implode(',', $orderByArray);
        }

        return $orderBy;
    }
private function cleanOrderBy($table, $orderBy)
    {
        if (!empty($orderBy)) {
            $orderByArray = explode(',', $orderBy);
            foreach ($orderByArray as $k => $order) {
                $orderByArray[$k] = $table . '.' . $order;
            }
            $orderBy = implode(',', $orderByArray);
        }

        return $orderBy;
    }
private function cleanOrderBy ( $ table , $ orderBy ) { if ( ! empty ( $ orderBy ) ) { $ orderByArray = explode ( ',' , $ orderBy ) ; foreach ( $ orderByArray as $ k => $ order ) { $ orderByArray [ $ k ] = $ table . '.' . $ order ; } $ orderBy = implode ( ',' , $ orderByArray ) ; } return $ orderBy ; }
Cleans order by clause

@param $table
@param $orderBy

@return string
Cleans order by clause