[Enh] Updates Index.razor with page sort order
Displays page list according to the sort order preferences applied to pages.
This commit is contained in:
parent
3732a0bc3f
commit
d3aa467d1c
|
@ -35,6 +35,7 @@
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
_pages = await PageService.GetPagesAsync(PageState.Site.SiteId);
|
_pages = await PageService.GetPagesAsync(PageState.Site.SiteId);
|
||||||
|
_pages = _pages.OrderBy(item => item.ParentId).ThenBy(item => item.Order).ToList();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user