Commit 592d7e53 by Don Mitchell

Keys are sorted now

parent 5275db9a
...@@ -59,9 +59,9 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({ ...@@ -59,9 +59,9 @@ CMS.Views.Settings.Advanced = CMS.Views.ValidatingView.extend({
// iterate through model and produce key : value editors for each property in model.get // iterate through model and produce key : value editors for each property in model.get
var self = this; var self = this;
_.each(this.model.attributes, _.each(_.sortBy(_.keys(this.model.attributes), _.identity),
function(value, key) { function(key) {
listEle$.append(self.template({ key : key, value : value})); listEle$.append(self.template({ key : key, value : self[key]}));
self.fieldToSelectorMap[key] = key; self.fieldToSelectorMap[key] = key;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment