Merge pull request #834 from Attackmonkey/Fix-U4-7257

Fixes issue where dictionary items are displayed in a random order
This commit is contained in:
Shannon Deminick
2015-10-22 18:43:23 +02:00

View File

@@ -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..