Ordered by Uploaded at
This commit is contained in:
parent
800db99fd9
commit
f9ab7bb3c8
@ -175,7 +175,7 @@ namespace Marco.Pms.Services.Controllers
|
||||
{
|
||||
documents = await docQuery
|
||||
.GroupBy(d => d.BatchId)
|
||||
.OrderBy(g => g.Key)
|
||||
.OrderByDescending(g => g.Max(d => d.UploadedAt))
|
||||
.Skip((pageNumber.Value - 1) * pageSize.Value)
|
||||
.Take(pageSize.Value)
|
||||
.Select(g => new DocumentBatchDto
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user