Fix the ordering logic - it helps if you actually assign the ordered items back to the list *facepalm*

This commit is contained in:
Warren Buckley
2018-10-24 14:55:01 +01:00
parent e2557697bc
commit 9a1a13ba81
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ namespace Umbraco.Web.Models.Mapping
variants.Remove(defaultLang);
//Sort the remaining languages a-z
variants.OrderBy(x => x.Language.Name);
variants = variants.OrderBy(x => x.Name).ToList();
//Insert the default lang as the first item
variants.Insert(0, defaultLang);