Skip to content

Commit

Permalink
fix: sort user (#1054)
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymonMrzyglod authored Feb 16, 2024
1 parent 3627e8f commit e503bae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/TeacherSubjects/components/ExamForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,9 @@ export const ExamForm: React.FC<Props> = ({ exam_id }) => {
}}
cardProps={{ bodyStyle: { paddingInline: 0 } }}
search={false}
dataSource={convertedData.exam_results}
dataSource={convertedData.exam_results.sort((a, b) =>
a.last_name.localeCompare(b.last_name),
)}
pagination={{ defaultPageSize: TEACHER_SUBJECTS_PAGE_SIZE }}
columns={staticColumns}
/>
Expand Down

0 comments on commit e503bae

Please sign in to comment.