diff --git a/source/Ox.UI/js/List/TreeList.js b/source/Ox.UI/js/List/TreeList.js index 3b292486..701a1b26 100644 --- a/source/Ox.UI/js/List/TreeList.js +++ b/source/Ox.UI/js/List/TreeList.js @@ -173,10 +173,9 @@ Ox.TreeList = function(options, self) { if (type == 'array' || type == 'object') { ret.title += Ox.toTitleCase(type) + ' [' + Ox.len(value) + ']'; - ret.items = Ox.sort( - type == 'array' ? value.map(function(v, i) { + ret.items = type == 'array' ? value.map(function(v, i) { return parseData(i, v); - }) : Object.keys(value).map(function(k) { + }) : Ox.sort(Object.keys(value)).map(function(k) { return parseData(k, value[k]); }) );