From 1f2968008be1c4f520fd92de75c5a307e07cb312 Mon Sep 17 00:00:00 2001 From: Vasilica Olariu Date: Tue, 11 Oct 2022 22:27:16 +0300 Subject: [PATCH] TCA-455 - sort the category options in homepage --- .../welcome/available-courses-list/AvailableCoursesList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ts/tools/learn/welcome/available-courses-list/AvailableCoursesList.tsx b/src-ts/tools/learn/welcome/available-courses-list/AvailableCoursesList.tsx index 9fbd7f288..89c6bc0b9 100644 --- a/src-ts/tools/learn/welcome/available-courses-list/AvailableCoursesList.tsx +++ b/src-ts/tools/learn/welcome/available-courses-list/AvailableCoursesList.tsx @@ -38,7 +38,7 @@ const AvailableCoursesList: FC = (props: AvailableCou }> = useMemo(() => { return [ {label: 'All Categories', value: '', orderIndex: -1}, - ...Object.keys(certsByCategory).map((c) => ({ + ...Object.keys(certsByCategory).sort().map((c) => ({ label: c, value: c, })),