diff --git a/apps/frontend/src/app/modules/misc/reducer/colleagues/colleagues.reducer.ts b/apps/frontend/src/app/modules/misc/reducer/colleagues/colleagues.reducer.ts index 85d048a83..49cf91d01 100644 --- a/apps/frontend/src/app/modules/misc/reducer/colleagues/colleagues.reducer.ts +++ b/apps/frontend/src/app/modules/misc/reducer/colleagues/colleagues.reducer.ts @@ -38,6 +38,25 @@ export function colleaguesReducer(state: ColleaguesState = initialState, action: for (const colleague of action.payload) { categories[colleague.category].push(colleague) } + + for (const category of categories) { + category.sort((a, b) => { + if (a.name === 'Szűcs Sándor') { + return -1 + } + + if (b.name === 'Szűcs Sándor') { + return 1 + } + + if (a.name > b.name) { + return 1 + } else { + return -1 + } + }) + } + state = { ...state, categories,