mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-16 06:32:28 +00:00
Fix ordering of pages
This commit is contained in:
parent
75ad64db40
commit
6d4d85b627
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ public class UsersPage : BaseLayout
|
||||||
this.Users = await this.Database.Users.Where
|
this.Users = await this.Database.Users.Where
|
||||||
(u => !u.Banned)
|
(u => !u.Banned)
|
||||||
.Skip(pageNumber * ServerStatics.PageSize)
|
.Skip(pageNumber * ServerStatics.PageSize)
|
||||||
|
.OrderByDescending(u => u.UserId)
|
||||||
.Take(ServerStatics.PageSize)
|
.Take(ServerStatics.PageSize)
|
||||||
.ToAsyncEnumerable()
|
.ToAsyncEnumerable()
|
||||||
.OrderBy(u => u.Status)
|
.OrderBy(u => u.Status)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue