We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed733f6 commit 3d91077Copy full SHA for 3d91077
clientv2/src/pages/recruiter/RecruiterHome.page.tsx
@@ -37,12 +37,12 @@ export function RecruiterHomePage() {
37
setLoading(false);
38
return showErrorNotification();
39
}
40
- const sortedData = response.data.sort(function (
+ const sortedData = response.data.sort((
41
a: Record<string, string>,
42
b: Record<string, string>
43
- ) {
44
- const keyA = a.name.toLowerCase(),
45
- keyB = b.name.toLowerCase();
+ ) => {
+ const keyA = a.name.toLowerCase();
+ const keyB = b.name.toLowerCase();
46
if (keyA < keyB) return -1;
47
if (keyA > keyB) return 1;
48
return 0;
0 commit comments