U4-6890 New content type editor: Missing sorting of properties from server

This commit is contained in:
Shannon
2015-12-21 10:37:54 +01:00
parent 8008a3b7c5
commit b13b4953c3

View File

@@ -155,7 +155,7 @@ namespace Umbraco.Web.Models.Mapping
{
var mappedProperties = new List<PropertyTypeDisplay>();
foreach (var p in properties.Where(x => x.DataTypeDefinitionId != 0) )
foreach (var p in properties.Where(x => x.DataTypeDefinitionId != 0).OrderBy(x => x.SortOrder))
{
var propertyEditor = _propertyEditorResolver.Value.GetByAlias(p.PropertyEditorAlias);
var preValues = _applicationContext.Services.DataTypeService.GetPreValuesCollectionByDataTypeId(p.DataTypeDefinitionId);