diff --git a/BO/Views/cm/cmregeduschedule.cshtml b/BO/Views/cm/cmregeduschedule.cshtml index e6dbf0e..e70cbf2 100644 --- a/BO/Views/cm/cmregeduschedule.cshtml +++ b/BO/Views/cm/cmregeduschedule.cshtml @@ -93,7 +93,7 @@ @if(Model.CMInningscds.Count() > 0) { - foreach (var item in Model.CMInningscds) + foreach (var item in Model.CMInningscds.OrderByDescending(c=>c.estart)) { tempInt = Model.CMInningscds2.Where(c => c.cmino == item.cmino && c.cmisno == item.cmisno && c.intv1 == 2).Count(); diff --git a/Base/Controller/ACommonCRoom.cs b/Base/Controller/ACommonCRoom.cs index 818c274..1e21f1c 100644 --- a/Base/Controller/ACommonCRoom.cs +++ b/Base/Controller/ACommonCRoom.cs @@ -1850,7 +1850,7 @@ namespace NP.Base.Controllers if (iscmlects == 1) return JsonBack(result.OrderByDescending(o => o.estart)); - return JsonBack(result); + return JsonBack(result.OrderByDescending(o => o.estart)); } /// /// 교육일정회차목록