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']);