Content Types should be sorted by SortOrder and then Alphabetically

Fixed in

EPiServer.CMS.Core 11.20.0

Created

Sep 09, 2020

Updated

Oct 08, 2020

Area

CMS Core

State

Closed, Fixed and tested


Description

Steps to reproduce:

  1. Create few page types with same order. CPage1, BPage2, APage1
  2. Go to Edit Mode and click New Page

Expected: Pages should be sorted Alphabetically.

https://stash.ep.se/projects/HA/repos/cmscore/browse/src/EPiServer/DataAbstraction/Internal/DefaultContentTypeAvailablilityService.cs#191

Probably can be implemented as:

Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
.OrderBy(c => SortByGroupDefinition(c)).ThenBy(ct => ct.SortOrder).ThenBy(ct => ct.Name)