We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20adbd7 commit 1f4bd57Copy full SHA for 1f4bd57
epictrack-api/src/api/models/staff.py
@@ -69,7 +69,7 @@ def find_active_staff_by_positions(cls, position_ids: List[int]):
69
"""Return active staffs by position ids."""
70
return cls.query.filter(
71
Staff.position_id.in_(position_ids), Staff.is_active.is_(True)
72
- ).order_by(asc(Staff.first_name), asc(Staff.last_name))
+ ).order_by(asc(Staff.last_name), asc(Staff.first_name))
73
74
@classmethod
75
def find_all_active_staff(cls):
0 commit comments