Skip to content

Commit da27789

Browse files
committed
order by the unix timestamp instead of the formatted date; fixes #130
1 parent 33f0480 commit da27789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Db/ReportItemMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function report($user, $from, $to, $filterProjectId, $filterClientId, $fi
245245
if (empty($limit)){
246246
$limit = 10000;
247247
}
248-
$sql = 'SELECT '.$selectItems.' where '.implode(" and ",$filters).' '.$group. ' order by time desc';
248+
$sql = 'SELECT '.$selectItems.' where '.implode(" and ",$filters).' '.$group. ' order by start desc';
249249
//var_dump($sql);
250250
// var_dump($params);
251251
return $this->findEntities($sql, $params, $limit, $start);

0 commit comments

Comments
 (0)