Skip to content

Commit 9c2b432

Browse files
committed
fix: sort instrument options on assignments page
1 parent 2a70936 commit 9c2b432

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/web/src/features/datahub/pages/SubjectAssignmentsPage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export const SubjectAssignmentsPage = () => {
3737

3838
const instrumentOptions = Object.fromEntries(
3939
(instrumentInfoQuery.data ?? [])
40+
.sort((a, b) => a.details.title.localeCompare(b.details.title))
4041
.filter((instrument) => {
4142
return currentGroup?.accessibleInstrumentIds.includes(instrument.id) ?? true;
4243
})

0 commit comments

Comments
 (0)