diff --git a/clientv2/src/pages/recruiter/RecruiterHome.page.tsx b/clientv2/src/pages/recruiter/RecruiterHome.page.tsx index ace7c8c..c671d4b 100644 --- a/clientv2/src/pages/recruiter/RecruiterHome.page.tsx +++ b/clientv2/src/pages/recruiter/RecruiterHome.page.tsx @@ -37,16 +37,15 @@ export function RecruiterHomePage() { setLoading(false); return showErrorNotification(); } - const sortedData = response.data.sort(( - a: Record, - b: Record - ) => { - const keyA = a.name.toLowerCase(); + const sortedData = response.data.sort( + (a: Record, b: Record) => { + const keyA = a.name.toLowerCase(); const keyB = b.name.toLowerCase(); - if (keyA < keyB) return -1; - if (keyA > keyB) return 1; - return 0; - }); + if (keyA < keyB) return -1; + if (keyA > keyB) return 1; + return 0; + } + ); setApiResponse(sortedData); setLoading(false); return undefined;