Order todo list by creation time #4

Merged
lovesan merged 1 commits from v2 into main 1 year ago

@ -50,6 +50,8 @@ namespace TodoApi.Controllers
q = q.Take(Math.Min(t, MaxResultCount));
}
q = q.OrderBy(e => e.CreatedAt);
var result = new
{
Items = await q.ToArrayAsync(),

Loading…
Cancel
Save