diff --git a/source/Ox.UI/js/List/Ox.TreeList.js b/source/Ox.UI/js/List/Ox.TreeList.js index cbe880f9..3888517e 100644 --- a/source/Ox.UI/js/List/Ox.TreeList.js +++ b/source/Ox.UI/js/List/Ox.TreeList.js @@ -34,8 +34,8 @@ Ox.TreeList = function(options, self) { if (self.options.data) { self.options.items = []; //Ox.print('d', self.options.data, 'i', self.options.items) - Ox.forEach(self.options.data, function(value, key) { - self.options.items.push(parseData(key, value)); + Ox.forEach(Ox.sort(Ox.keys(self.options.data)), function(key) { + self.options.items.push(parseData(key, self.options.data[key])); }); //Ox.print('d', self.options.data, 'i', self.options.items) }