Skip to content

Commit

Permalink
Merge pull request BlogEngine#101 from hannakfoo/master
Browse files Browse the repository at this point in the history
Added Orderby to use the sortorder for page objects in BlogEngine.
  • Loading branch information
rxtur authored Sep 7, 2016
2 parents 785ef5e + e587d35 commit 0a85967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BlogEngine/BlogEngine.Core/Web/Controls/PageMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ bool HasChildren(Guid pageId)
{
bool returnValue = false;

foreach (BlogEngine.Core.Page page in BlogEngine.Core.Page.Pages)
foreach (BlogEngine.Core.Page page in BlogEngine.Core.Page.Pages.OrderBy(page => page.SortOrder))
{
if (page.ShowInList && page.IsPublished)
{
Expand Down

0 comments on commit 0a85967

Please sign in to comment.