fixed article ordering in various places

This commit is contained in:
Mia Rose Winter 2024-02-20 18:35:53 +01:00
parent c226331974
commit 83054d97dc
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
<p>No Articles</p>
} else {
<div class="flex flex-col gap-4">
@foreach (var article in Articles) {
@foreach (var article in Articles.OrderByDescending(a => a.PublishDate)) {
<ArticleCard Article="article" />
}
</div>

View file

@ -47,7 +47,7 @@
<section>
<h2 class="text-2xl lg:text-4xl mb-3">@Localizer["Articles"]</h2>
<ArticleTileArray>
@foreach (var article in User.Articles) {
@foreach (var article in User.Articles.OrderByDescending(a => a.PublishDate)) {
<ArticleTile Article="article" />
}
</ArticleTileArray>