mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 04:19:04 +08:00
Roles ordered by name in admin page
--HG-- branch : 1.x
This commit is contained in:
@@ -40,7 +40,7 @@ namespace Orchard.Roles.Controllers {
|
||||
if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to manage roles")))
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
var model = new RolesIndexViewModel { Rows = _roleService.GetRoles().ToList() };
|
||||
var model = new RolesIndexViewModel { Rows = _roleService.GetRoles().OrderBy(r => r.Name).ToList() };
|
||||
|
||||
return View(model);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user