Revert "Order users list by status then by user id desc"

This reverts commit 75ad64db40.
This commit is contained in:
jvyden 2022-01-22 21:48:16 -05:00
parent a36a8390e3
commit da5671863a
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -8,6 +8,7 @@ using LBPUnion.ProjectLighthouse.Pages.Layouts;
using LBPUnion.ProjectLighthouse.Types;
using LBPUnion.ProjectLighthouse.Types.Settings;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace LBPUnion.ProjectLighthouse.Pages;
@ -35,11 +36,9 @@ public class UsersPage : BaseLayout
this.Users = await this.Database.Users.Where
(u => !u.Banned)
.OrderByDescending(b => b.UserId)
.Skip(pageNumber * ServerStatics.PageSize)
.Take(ServerStatics.PageSize)
.ToAsyncEnumerable()
.OrderBy(u => u.Status)
.ThenByDescending(u => u.UserId)
.ToListAsync();
return this.Page();