From 0568bf51f035bdc9e0018f79043819ad8354f28f Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 22 Oct 2015 17:17:29 +0100 Subject: [PATCH] Fixes issue where dictionary items are displayed in a random order (see issue U4-7257) --- .../umbraco.presentation/umbraco/Trees/loadDictionary.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadDictionary.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadDictionary.cs index 78f44a1e9b..8530f6b074 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadDictionary.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/loadDictionary.cs @@ -2,6 +2,7 @@ using System.Collections; using System.Collections.Generic; using System.Data; +using System.Linq; using System.IO; using System.Text; using System.Web; @@ -71,7 +72,7 @@ namespace umbraco else tmp = new Dictionary.DictionaryItem(this.id).Children; - foreach (Dictionary.DictionaryItem di in tmp) + foreach (Dictionary.DictionaryItem di in tmp.OrderBy(a => a.key)) { XmlTreeNode xNode = XmlTreeNode.Create(this); xNode.NodeID = di.id.ToString(); //dictionary_ + id..