diff --git a/epictrack-api/src/api/models/staff.py b/epictrack-api/src/api/models/staff.py index 41840192b..d8173d9af 100644 --- a/epictrack-api/src/api/models/staff.py +++ b/epictrack-api/src/api/models/staff.py @@ -69,7 +69,7 @@ def find_active_staff_by_positions(cls, position_ids: List[int]): """Return active staffs by position ids.""" return cls.query.filter( Staff.position_id.in_(position_ids), Staff.is_active.is_(True) - ).order_by(asc(Staff.first_name), asc(Staff.last_name)) + ).order_by(asc(Staff.last_name), asc(Staff.first_name)) @classmethod def find_all_active_staff(cls):