order blog entries by post date

This commit is contained in:
Michael 2017-05-17 18:37:30 -04:00
parent 45746d4c4a
commit e268cb312e

View file

@ -16,7 +16,7 @@
</ul> </ul>
} }
} }
@foreach(var blog in Model) @foreach(var blog in Model.OrderByDescending(x=>x.PostedAt))
{ {
<div class="panel"> <div class="panel">
<div class="panel-body"> <div class="panel-body">