mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
16992 Content Types admin not ordered alphabetically
--HG-- branch : dev
This commit is contained in:
@@ -36,7 +36,7 @@ namespace Orchard.ContentTypes.Services {
|
||||
public Localizer T { get; set; }
|
||||
|
||||
public IEnumerable<EditTypeViewModel> GetTypes() {
|
||||
return _contentDefinitionManager.ListTypeDefinitions().Select(ctd => new EditTypeViewModel(ctd));
|
||||
return _contentDefinitionManager.ListTypeDefinitions().Select(ctd => new EditTypeViewModel(ctd)).OrderBy(m => m.DisplayName);
|
||||
}
|
||||
|
||||
public EditTypeViewModel GetType(string name) {
|
||||
|
Reference in New Issue
Block a user