Order comments properly

This commit is contained in:
jvyden 2021-10-29 17:25:11 -04:00
commit 8119a7f030
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -26,6 +26,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers {
.Include(c => c.Target)
.Include(c => c.Poster)
.Where(c => c.Target.Username == username)
.OrderBy(c => c.Timestamp)
.ToListAsync();
string outputXml = comments.Aggregate(string.Empty, (current, comment) => current + comment.Serialize());