File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Easy.CMS.Web/Modules/Section/Models Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments