From 4c7cd86da26957957a326b285921a92e0c54382b Mon Sep 17 00:00:00 2001 From: Kevin LaBranche Date: Thu, 9 Dec 2010 08:01:02 -0700 Subject: [PATCH 1/2] WorkItem 16992 - Content Types are now in Alpha Order like Content Parts. --- .../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 9c3d936af..7cea10b4f 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs @@ -38,7 +38,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.Name); } public EditTypeViewModel GetType(string name) { From b4515cbadab5f1c1481d6522e93eac2e4e23828b Mon Sep 17 00:00:00 2001 From: Suha Can Date: Thu, 9 Dec 2010 14:24:55 -0800 Subject: [PATCH 2/2] Minor correction to previous contribution, CTD's are listed by DisplayName instead of Name. --- .../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 7cea10b4f..ce536c6b1 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Services/ContentDefinitionService.cs @@ -38,7 +38,7 @@ namespace Orchard.ContentTypes.Services { public Localizer T { get; set; } public IEnumerable GetTypes() { - return _contentDefinitionManager.ListTypeDefinitions().Select(ctd => new EditTypeViewModel(ctd)).OrderBy(m=>m.Name); + return _contentDefinitionManager.ListTypeDefinitions().Select(ctd => new EditTypeViewModel(ctd)).OrderBy(m => m.DisplayName); } public EditTypeViewModel GetType(string name) {