From eb98a2b4b2ffdfa0ab6256c27412fa0178e8108c Mon Sep 17 00:00:00 2001 From: denghy Date: Tue, 12 Feb 2019 10:04:52 +0800 Subject: [PATCH] orderBy --- app/Domains/Stats/Services/CompanyReportService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Domains/Stats/Services/CompanyReportService.php b/app/Domains/Stats/Services/CompanyReportService.php index 229fea6e..f042509f 100644 --- a/app/Domains/Stats/Services/CompanyReportService.php +++ b/app/Domains/Stats/Services/CompanyReportService.php @@ -43,7 +43,7 @@ class CompanyReportService extends Service $query = $this->orderCardPartitionRepository->select($select) ->withConditions($conditions) ->groupBy(['company_id', 'package_id', 'type']) - ->orderBy('type')->orderBy('company_id')->orderBy('package_id'); + ->orderBy('company_id')->orderBy('type')->orderBy('package_id'); $res = $query->paginate($conditions['limit']);