Sort invoice list (Fix #1329)

This commit is contained in:
nicolas.dorier 2020-02-19 22:03:59 +09:00
parent 6d0896084f
commit dc4f8a1fbe
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE

View File

@ -606,7 +606,7 @@ retry:
if (queryObject.IncludeEvents)
query = query.Include(o => o.Events);
var data = await query.ToArrayAsync().ConfigureAwait(false);
var data = await query.OrderByDescending(i => i.Created).ToArrayAsync().ConfigureAwait(false);
return data.Select(ToEntity).ToArray();
}
}