Fix ordering of admins by level, then name
This commit is contained in:
parent
1e9a87d6fa
commit
3af9f55bf1
@ -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>>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user