Skip to content

Commit 87233d2

Browse files
author
Wayne
committed
Order
1 parent 5994e0a commit 87233d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Easy.CMS.Web/Modules/Section/Models/SectionGroup.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private IEnumerable<T> GetContents<T>(SectionContentBase.Types type) where T : S
3535
{
3636
if (SectionContents != null)
3737
{
38-
return SectionContents.Where(m => m != null && m.SectionContentType == (int)type).Cast<T>();
38+
return SectionContents.Where(m => m != null && m.SectionContentType == (int)type).OrderBy(m => m.Order).Cast<T>();
3939
}
4040
return null;
4141
}
@@ -102,7 +102,7 @@ public string GetTemplateName()
102102
{
103103
if (_templateName.IsNullOrWhiteSpace())
104104
{
105-
var template= ServiceLocator.Current.GetInstance<ISectionTemplateService>().Get(PartialView);
105+
var template = ServiceLocator.Current.GetInstance<ISectionTemplateService>().Get(PartialView);
106106
if (template != null)
107107
{
108108
_templateName = template.Title;

0 commit comments

Comments
 (0)