diff --git a/tailbone/views/people.py b/tailbone/views/people.py index e3e1c8e8..c1eb2dfb 100644 --- a/tailbone/views/people.py +++ b/tailbone/views/people.py @@ -261,7 +261,7 @@ class PeopleView(MasterView): def get_context_employee_history(self, employee): data = [] if employee: - for history in sorted(employee.history, key=lambda h: h.start_date, reverse=True): + for history in employee.sorted_history(reverse=True): data.append({ 'uuid': history.uuid, 'start_date': six.text_type(history.start_date),