Skip to content

Commit 0a85967

Browse files
authored
Merge pull request BlogEngine#101 from hannakfoo/master
Added Orderby to use the sortorder for page objects in BlogEngine.
2 parents 785ef5e + e587d35 commit 0a85967

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)