We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d36300c commit fe2dd0eCopy full SHA for fe2dd0e
1 file changed
web/src/features/mentors/selectors.ts
@@ -9,6 +9,8 @@ import {
9
normalizeSearchText,
10
} from './utils';
11
12
+const collator = new Intl.Collator();
13
+
14
type FilterOptions = {
15
query: string;
16
selectedStatus: string;
@@ -113,7 +115,7 @@ export const buildStatusOptions = (diplomaData: Diploma[] | undefined) =>
113
115
return stageA - stageB;
114
116
}
117
- return a.localeCompare(b);
118
+ return collator.compare(a, b);
119
},
120
);
121
0 commit comments