bugfix :: 그룹, 팝업내 그룹, 조직도 검색시 sorting

This commit is contained in:
leejinho 2020-02-14 12:37:05 +09:00
parent b9ec6d7425
commit 831bdde860
3 changed files with 9 additions and 3 deletions

View File

@ -349,7 +349,9 @@ export class GroupComponent implements OnInit, OnDestroy {
case SSVC_TYPE_QUERY_DEPT_USER_RES:
{
// 검색 결과 처리.
this.searchUserInfos = searchUserInfos;
this.searchUserInfos = searchUserInfos.sort((a, b) =>
a.name < b.name ? -1 : a.name > b.name ? 1 : 0
);
this.searchProcessing = false;
// 검색 결과에 따른 프레즌스 조회.

View File

@ -335,7 +335,9 @@ export class OrganizationComponent
.pipe(take(1))
.subscribe(
datas => {
this.searchUserInfos = datas.userInfos;
this.searchUserInfos = datas.userInfos.sort((a, b) =>
a.name < b.name ? -1 : a.name > b.name ? 1 : 0
);
this.selectedDepartmentProcessing = false;
if (!!this.vsDeptSearchUser) {

View File

@ -473,7 +473,9 @@ export class CreateChatDialogComponent implements OnInit, OnDestroy {
case SSVC_TYPE_QUERY_DEPT_USER_RES:
{
// 검색 결과 처리.
this.searchUserInfos = searchUserInfos;
this.searchUserInfos = searchUserInfos.sort((a, b) =>
a.name < b.name ? -1 : a.name > b.name ? 1 : 0
);
this.searchProcessing = false;
// 검색 결과에 따른 프레즌스 조회.