lookingGlass: Sort introspected property names

https://bugzilla.gnome.org/show_bug.cgi?id=673187
This commit is contained in:
Jasper St. Pierre 2012-03-30 11:15:33 -04:00
parent 7dbdf2aa07
commit 348044bc8a

View File

@ -400,7 +400,14 @@ const ObjInspector = new Lang.Class({
button.connect('clicked', Lang.bind(this, this.close)); button.connect('clicked', Lang.bind(this, this.close));
hbox.add(button); hbox.add(button);
if (typeof(obj) == typeof({})) { if (typeof(obj) == typeof({})) {
let properties = [];
for (let propName in obj) { for (let propName in obj) {
properties.push(propName);
}
properties.sort();
for (let i = 0; i < properties.length; i++) {
let propName = properties[i];
let valueStr; let valueStr;
let link; let link;
try { try {