From 7469d2d0b14370cf9a2722076c91a9249cbe2e91 Mon Sep 17 00:00:00 2001 From: Suha Can Date: Thu, 9 Dec 2010 14:22:58 -0800 Subject: [PATCH] 16992 Content Types admin not ordered alphabetically --HG-- branch : dev --- .../Orchard.ContentTypes/Services/ContentDefinitionService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs b/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs index 6fdb834a1..dcf88ab96 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs @@ -36,7 +36,7 @@ namespace Orchard.ContentTypes.Services { public Localizer T { get; set; } public IEnumerable 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) {