@@ 423-425 (lines=3) @@ | ||
420 | } |
|
421 | ||
422 | $orderByParts = array(); |
|
423 | foreach ($this->sqlParts['withinGroupOrderBy'] as $orderBy) { |
|
424 | $orderByParts[] = $orderBy['order'].$this->getDirection($orderBy['order'], $orderBy['direction']); |
|
425 | } |
|
426 | ||
427 | return $sql.' WITHIN GROUP ORDER BY '.implode(', ', $orderByParts); |
|
428 | } |
|
@@ 437-439 (lines=3) @@ | ||
434 | } |
|
435 | ||
436 | $orderByParts = array(); |
|
437 | foreach ($this->sqlParts['orderBy'] as $orderBy) { |
|
438 | $orderByParts[] = $orderBy['order'].$this->getDirection($orderBy['order'], $orderBy['direction']); |
|
439 | } |
|
440 | ||
441 | return ' ORDER BY '.implode(', ', $orderByParts); |
|
442 | } |