Update SearchApiV2Service, order statuses by timestamp

This commit is contained in:
Daniel Supernault 2020-02-07 01:33:03 -07:00
parent d3cd0eea11
commit c66d120cb7
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -132,6 +132,7 @@ class SearchApiV2Service
return $q->offset($offset); return $q->offset($offset);
}) })
->limit($limit) ->limit($limit)
->orderByDesc('created_at')
->get(); ->get();
$fractal = new Fractal\Manager(); $fractal = new Fractal\Manager();