Order todo list by creation time

pull/4/head
Dmitry Ignatiev 1 year ago
parent e30df62c21
commit 4be6ec03ef

@ -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