Added id ordering as postgres would return the last changed elements first which breaks pagination

This commit is contained in:
2025-07-24 20:24:00 +02:00
parent 431cdcb260
commit bdc4ad8265
10 changed files with 29 additions and 7 deletions

View File

@@ -49,6 +49,7 @@ public class StarVariablesController : Controller
var count = await query.CountAsync();
var items = await query
.OrderBy(x => x.Id)
.Skip(page * pageSize)
.Take(pageSize)
.ToArrayAsync();