diff --git a/Tsi1.Api/Tsi1.BusinessLayer/Services/PostService.cs b/Tsi1.Api/Tsi1.BusinessLayer/Services/PostService.cs index 0d625f4d02207dfae95d3c44aac8555516f83b40..795c771027536c269c733ada645ac9c430eb9249 100644 --- a/Tsi1.Api/Tsi1.BusinessLayer/Services/PostService.cs +++ b/Tsi1.Api/Tsi1.BusinessLayer/Services/PostService.cs @@ -67,6 +67,7 @@ namespace Tsi1.BusinessLayer.Services var posts = await _context.Posts .Where(x => x.ForumId == forumId) + .OrderByDescending(x => x.Date) .ToListAsync(); var postDtos = _mapper.Map<List<PostPreviewDto>>(posts);