From f0c09cba9372fa68053de05cc23a8f170ca9fb23 Mon Sep 17 00:00:00 2001 From: Sergey Panarin Date: Fri, 2 Aug 2024 10:41:21 +0200 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/EmployerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 0517707..aa255a3 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -228,7 +228,7 @@ class EmployerController extends Controller default: $vacancy_list = $vacancy_list->orderByDesc('id')->orderbyDesc('updated_at'); break; } } else { - $vacancy_list = $vacancy_list->orderByDesc('created_at')->orderBy('id'); + $vacancy_list = $vacancy_list->orderByDesc('updated_at')->orderBy('id'); } $vacancy_list = $vacancy_list->paginate(10); -- 1.7.10.4