From 20fd30ff3dbc405d5dd8e730d24323c614f83844 Mon Sep 17 00:00:00 2001 From: A R R R Associates Date: Mon, 10 Aug 2026 16:02:29 +0530 Subject: [PATCH] Fix consultant sort in engagement detail --- app/modules/work_detail/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/work_detail/service.py b/app/modules/work_detail/service.py index eb44ab7..7d9ac3c 100644 --- a/app/modules/work_detail/service.py +++ b/app/modules/work_detail/service.py @@ -381,7 +381,7 @@ def get_linked_consultants_for_engagement(db: Session, *, engagement: ClientServ or_(ClientConsultantLink.effective_from.is_(None), ClientConsultantLink.effective_from <= today), or_(ClientConsultantLink.effective_to.is_(None), ClientConsultantLink.effective_to >= today), ) - .order_by(ClientConsultantLink.is_primary.desc(), ConsultantProfile.full_name.asc()) + .order_by(ClientConsultantLink.is_primary.desc(), ConsultantProfile.contact_person.asc()) ).all() return [{"link": link, "consultant": consultant} for link, consultant in rows]