From f16aa38fff1f0be192b3a5961c2486caa46dd89a Mon Sep 17 00:00:00 2001 From: Tim Payne Date: Thu, 7 Nov 2013 15:51:58 +0000 Subject: [PATCH] Fixes issue U4-2757 where generic properties are not ordered correctly. --- .../umbraco.presentation/umbraco/controls/ContentControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentControl.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentControl.cs index 589682a18c..f334110c8f 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentControl.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/controls/ContentControl.cs @@ -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));