Fix ordering of admins by level, then name

This commit is contained in:
RaidMax 2019-09-27 15:49:03 -05:00
parent 1e9a87d6fa
commit 3af9f55bf1

View File

@ -93,7 +93,8 @@ namespace WebfrontCore.Controllers
public async Task<IActionResult> PrivilegedAsync() public async Task<IActionResult> PrivilegedAsync()
{ {
var admins = (await Manager.GetClientService().GetPrivilegedClients()) var admins = (await Manager.GetClientService().GetPrivilegedClients())
.OrderBy(_client => _client.Name); .OrderByDescending(_client => _client.Level)
.ThenBy(_client => _client.Name);
var adminsDict = new Dictionary<EFClient.Permission, IList<ClientInfo>>(); var adminsDict = new Dictionary<EFClient.Permission, IList<ClientInfo>>();