Commit 53bdf870 authored by 黄奎's avatar 黄奎

新增排序

parent e0dbf832
...@@ -415,7 +415,7 @@ namespace Edu.Module.Question ...@@ -415,7 +415,7 @@ namespace Edu.Module.Question
var tempList = optionItems.Where(qitem => qitem.IsAnswer == true); var tempList = optionItems.Where(qitem => qitem.IsAnswer == true);
if (tempList != null && tempList.Count() > 0) if (tempList != null && tempList.Count() > 0)
{ {
AnalysisAnswer = string.Join(",", tempList.Select(qitem => qitem.Name)); AnalysisAnswer = string.Join(",", tempList.OrderBy(qitem => qitem.Name).Select(qitem => qitem.Name));
} }
else else
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment