diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs index 7e369804a..ec0a4a01e 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingQuestionService.cs @@ -194,7 +194,7 @@ namespace IRaCIS.Application.Services .WhereIf(inDto.TableQuestionType!=null,x=>x.TableQuestionType ==inDto.TableQuestionType!) .Where(x=>x.ReadingQuestionId==inDto.ReadingQuestionId).ProjectTo(_mapper.ConfigurationProvider); - var result=await readingTableQuestionSystemQueryable.ToListAsync(); + var result=await readingTableQuestionSystemQueryable.OrderBy(x=>x.ShowOrder).ToListAsync(); return result; } @@ -213,7 +213,7 @@ namespace IRaCIS.Application.Services .WhereIf(inDto.TableQuestionType != null, x => x.TableQuestionType == inDto.TableQuestionType!) .Where(x => x.ReadingQuestionId == inDto.ReadingQuestionId).ProjectTo(_mapper.ConfigurationProvider); - var result = await readingTableQuestionSystemQueryable.ToListAsync(); + var result = await readingTableQuestionSystemQueryable.OrderBy(x=>x.ShowOrder).ToListAsync(); return result; }