Skip to content

Commit

Permalink
Added date sorting for campaigns
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Nesterov committed Apr 17, 2020
1 parent bf42bab commit 0395bdf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ public async Task<CampaignsPage> GetCampaignsAsync(CampaignListRequest request)
}

var result = await query
.OrderByDescending(i => i.CreatedBy)
.Skip(request.Skip)
.Take(request.Take)
.ToListAsync();
Expand Down

0 comments on commit 0395bdf

Please sign in to comment.