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:
@@ -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..
|
||||
|
||||
Reference in New Issue
Block a user