mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-09 05:18:47 +00:00
Fix timestamp order
This commit is contained in:
parent
73c68c92fe
commit
075887b63c
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers {
|
|||
.Include(c => c.Target)
|
||||
.Include(c => c.Poster)
|
||||
.Where(c => c.Target.Username == username)
|
||||
.OrderBy(c => c.Timestamp)
|
||||
.OrderByDescending(c => c.Timestamp)
|
||||
.ToListAsync();
|
||||
|
||||
string outputXml = comments.Aggregate(string.Empty, (current, comment) => current + comment.Serialize());
|
||||
|
|
|
@ -45,7 +45,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers {
|
|||
IQueryable<Slot> slots = this.database.Slots
|
||||
.Include(s => s.Creator)
|
||||
.Include(s => s.Location)
|
||||
.OrderBy(s => s.FirstUploaded)
|
||||
.OrderByDescending(s => s.FirstUploaded)
|
||||
.Skip(pageStart - 1)
|
||||
.Take(Math.Min(pageSize, 30));
|
||||
string response = Enumerable.Aggregate(slots, string.Empty, (current, slot) => current + slot.Serialize());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue