Merge pull request #223 from Attackmonkey/Hackathon-2757

Fixes issue U4-2757 where generic properties are not ordered correctly.
This commit is contained in:
Sebastiaan Janssen
2013-12-29 06:18:19 -08:00

View File

@@ -178,7 +178,7 @@ namespace umbraco.controls
//if the property is not in a tab, add it to the general tab
var props = _content.GenericProperties;
foreach (Property p in props)
foreach (Property p in props.OrderBy(x => x.PropertyType.SortOrder))
{
if (inTab[p.PropertyType.Id.ToString()] == null)
AddControlNew(p, tpProp, ui.Text("general", "properties", null));