diff --git a/ProjectLighthouse/Controllers/CommentController.cs b/ProjectLighthouse/Controllers/CommentController.cs index 52ef1718..5881cc79 100644 --- a/ProjectLighthouse/Controllers/CommentController.cs +++ b/ProjectLighthouse/Controllers/CommentController.cs @@ -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()); diff --git a/ProjectLighthouse/Controllers/SlotsController.cs b/ProjectLighthouse/Controllers/SlotsController.cs index 3dfa4704..d4733dbd 100644 --- a/ProjectLighthouse/Controllers/SlotsController.cs +++ b/ProjectLighthouse/Controllers/SlotsController.cs @@ -45,7 +45,7 @@ namespace LBPUnion.ProjectLighthouse.Controllers { IQueryable 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());