Skip to content

Commit

Permalink
Merge pull request #2401 from tom0827/TRACK-16
Browse files Browse the repository at this point in the history
TRACK-16: order decision makers by last name
  • Loading branch information
tom0827 authored Sep 5, 2024
2 parents 5b13699 + 1f4bd57 commit ce97476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epictrack-api/src/api/models/staff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ce97476

Please sign in to comment.