Open spl1nes opened 7 months ago
An sql ORDER BY can have multiple columns specified for ordering.
ORDER BY
ORDER BY col1 DESC, col2 ASC, col3 DESC
The data mapper appears to not support this:
foreach ($data as $sort) { if (($column = $this->mapper::getColumnByMember($member)) === null || ($sort['child'] !== '') ) { continue; } $query->orderBy($this->mapper::TABLE . '_d' . $this->depth . $this->joinAlias . '.' . $column, $sort['order']); break; // there is only one root element (one element with child === '') }
An sql
ORDER BY
can have multiple columns specified for ordering.The data mapper appears to not support this: