mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-09-27 19:59:09 +00:00
Order comments properly
This commit is contained in:
parent
1a23108820
commit
8119a7f030
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers {
|
||||||
.Include(c => c.Target)
|
.Include(c => c.Target)
|
||||||
.Include(c => c.Poster)
|
.Include(c => c.Poster)
|
||||||
.Where(c => c.Target.Username == username)
|
.Where(c => c.Target.Username == username)
|
||||||
|
.OrderBy(c => c.Timestamp)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
string outputXml = comments.Aggregate(string.Empty, (current, comment) => current + comment.Serialize());
|
string outputXml = comments.Aggregate(string.Empty, (current, comment) => current + comment.Serialize());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue