correctly sort by numeric columns

This commit is contained in:
2018-08-11 23:34:48 +02:00
parent 8d6ec7b47d
commit e1c7114bd4
6 changed files with 73 additions and 35 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ abstract class BaseExporter
$columns = $this->columns;
// TODO raw query to allow selecting aggregates, column subsets, etc
if (count($columns)) $rq = $rq->orderByRaw("data->>'".$columns[0]->id."'");
if (count($columns)) $rq = $rq->sortByCol($columns[0]);
while ($start < $count) {
$rows = $rq->offset($start)->limit($chunkSize)->get()->toArray();