mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
Sort invoice list (Fix #1329)
This commit is contained in:
parent
6d0896084f
commit
dc4f8a1fbe
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user