diff --git a/projects/ucap-webmessenger-app/src/app/store/messenger/query/effects.ts b/projects/ucap-webmessenger-app/src/app/store/messenger/query/effects.ts index b426c5ff..c9a14d88 100644 --- a/projects/ucap-webmessenger-app/src/app/store/messenger/query/effects.ts +++ b/projects/ucap-webmessenger-app/src/app/store/messenger/query/effects.ts @@ -82,6 +82,10 @@ export class Effects { userInfos.push(...(res as DeptUserData).userInfos); break; case SSVC_TYPE_QUERY_DEPT_USER_RES: + userInfos.sort((a, b) => { + return a.name < b.name ? -1 : a.name > b.name ? 1 : 0; + }); + this.store.dispatch( deptUserSuccess({ userInfos,