properly sort top-level keys in data of treelist
This commit is contained in:
parent
b428f3b3e2
commit
4642b56a95
1 changed files with 2 additions and 2 deletions
|
@ -34,8 +34,8 @@ Ox.TreeList = function(options, self) {
|
||||||
if (self.options.data) {
|
if (self.options.data) {
|
||||||
self.options.items = [];
|
self.options.items = [];
|
||||||
//Ox.print('d', self.options.data, 'i', self.options.items)
|
//Ox.print('d', self.options.data, 'i', self.options.items)
|
||||||
Ox.forEach(self.options.data, function(value, key) {
|
Ox.forEach(Ox.sort(Ox.keys(self.options.data)), function(key) {
|
||||||
self.options.items.push(parseData(key, value));
|
self.options.items.push(parseData(key, self.options.data[key]));
|
||||||
});
|
});
|
||||||
//Ox.print('d', self.options.data, 'i', self.options.items)
|
//Ox.print('d', self.options.data, 'i', self.options.items)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue