From c66d120cb7399783662ac839a9bcf2997bc852cf Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 7 Feb 2020 01:33:03 -0700 Subject: [PATCH] Update SearchApiV2Service, order statuses by timestamp --- app/Services/SearchApiV2Service.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Services/SearchApiV2Service.php b/app/Services/SearchApiV2Service.php index 414ebdfa..940812d7 100644 --- a/app/Services/SearchApiV2Service.php +++ b/app/Services/SearchApiV2Service.php @@ -132,6 +132,7 @@ class SearchApiV2Service return $q->offset($offset); }) ->limit($limit) + ->orderByDesc('created_at') ->get(); $fractal = new Fractal\Manager();