diff --git a/IRaCIS.Core.Application/Service/Management/UserTypeService.cs b/IRaCIS.Core.Application/Service/Management/UserTypeService.cs index c3553372b..d1c443800 100644 --- a/IRaCIS.Core.Application/Service/Management/UserTypeService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserTypeService.cs @@ -151,7 +151,7 @@ namespace IRaCIS.Core.Application.Contracts var query = _userTypeRepository.Where(x => x.UserTypeEnum != UserTypeEnum.SuperAdmin) .WhereIf(userTypeSelectEnum != UserTypeSelectEnum.None, t => userTypeEnums.Contains(t.UserTypeEnum)) - .OrderBy(t => t.Order).ProjectTo(_mapper.ConfigurationProvider); + .OrderBy(t => t.UserTypeShortName).ProjectTo(_mapper.ConfigurationProvider); return await query.ToListAsync(); } @@ -168,7 +168,7 @@ namespace IRaCIS.Core.Application.Contracts { var query = _userTypeRepository.Where(x => x.UserTypeEnum != UserTypeEnum.SuperAdmin) .Where(t => !t.UserTypeGroupList.Any(t=> t.Group.Code=="3")) - .OrderBy(t => t.Order).ProjectTo(_mapper.ConfigurationProvider); + .OrderBy(t => t.UserTypeShortName).ProjectTo(_mapper.ConfigurationProvider); return await query.ToListAsync(); }