Skip to content

Commit

Permalink
added the right sorting of index page
Browse files Browse the repository at this point in the history
  • Loading branch information
mastoj committed Oct 29, 2012
1 parent b9885a8 commit 0924e06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NBlog.Web/Controllers/PostController.cs
Expand Up @@ -29,7 +29,7 @@ public virtual ActionResult Index()
{
var items = (_authenticationService.IsUserAuthenticated(User)
? _postView.GetPosts()
: _postView.GetPublishedPosts()).OrderByDescending(y => y.PublishedTime ?? DateTime.MinValue);
: _postView.GetPublishedPosts()).OrderByDescending(y => y.PublishedTime);
return View(items);
}

Expand Down

0 comments on commit 0924e06

Please sign in to comment.