Skip to content

Commit e587d35

Browse files
committed
Added Orderby to use the sortorder for a page objects in BlogEngine.
1 parent 3c27636 commit e587d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BlogEngine/BlogEngine.Core/Web/Controls/PageMenu.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ bool HasChildren(Guid pageId)
8383
{
8484
bool returnValue = false;
8585

86-
foreach (BlogEngine.Core.Page page in BlogEngine.Core.Page.Pages)
86+
foreach (BlogEngine.Core.Page page in BlogEngine.Core.Page.Pages.OrderBy(page => page.SortOrder))
8787
{
8888
if (page.ShowInList && page.IsPublished)
8989
{

0 commit comments

Comments
 (0)