{"action":"created","issue":{"url":"https://api.github.com/repos/devtools-html/debugger.html/issues/1991","repository_url":"https://api.github.com/repos/devtools-html/debugger.html","labels_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/1991/labels{/name}","comments_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/1991/comments","events_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/1991/events","html_url":"https://github.com/devtools-html/debugger.html/issues/1991","id":206918981,"number":1991,"title":"[Scopes] properties are sorted alphabetically","user":{"login":"jasonLaster","id":254562,"avatar_url":"https://avatars.githubusercontent.com/u/254562?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonLaster","html_url":"https://github.com/jasonLaster","followers_url":"https://api.github.com/users/jasonLaster/followers","following_url":"https://api.github.com/users/jasonLaster/following{/other_user}","gists_url":"https://api.github.com/users/jasonLaster/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonLaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonLaster/subscriptions","organizations_url":"https://api.github.com/users/jasonLaster/orgs","repos_url":"https://api.github.com/users/jasonLaster/repos","events_url":"https://api.github.com/users/jasonLaster/events{/privacy}","received_events_url":"https://api.github.com/users/jasonLaster/received_events","type":"User","site_admin":false},"labels":[{"id":346505994,"url":"https://api.github.com/repos/devtools-html/debugger.html/labels/bug","name":"bug","color":"fc2929","default":true},{"id":408866147,"url":"https://api.github.com/repos/devtools-html/debugger.html/labels/difficulty:%20medium","name":"difficulty: medium","color":"fbca04","default":false},{"id":408845805,"url":"https://api.github.com/repos/devtools-html/debugger.html/labels/up%20for%20grabs","name":"up for grabs","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-10T22:08:12Z","updated_at":"2017-02-13T14:23:50Z","closed_at":null,"body":"When we show large arrays, the properties are sorted alphabetically instead of numerically:\r\n\r\nthis results in a list like `1, 11,12, 2, 22, ...` \r\n\r\nA good way to test this is to go to the *arrays* example https://devtools-html.github.io/debugger-examples/examples/arrays.html\r\n\r\n\r\nThis is probably where the bug is\r\n\r\n```diff\r\ndiff --git a/src/components/shared/ObjectInspector.js b/src/components/shared/ObjectInspector.js\r\nindex 39287d1..78e3323 100644\r\n--- a/src/components/shared/ObjectInspector.js\r\n+++ b/src/components/shared/ObjectInspector.js\r\n@@ -64,13 +64,16 @@ function isDefault(item) {\r\n function makeNodesForProperties(objProps, parentPath) {\r\n   const { ownProperties, prototype } = objProps;\r\n\r\n-  const nodes = Object.keys(ownProperties).sort().filter(name => {\r\n+  const nodes = Object.keys(ownProperties)\r\n+  // this is probably wrong\r\n+    .sort()\r\n+    .filter(name => {\r\n     // Ignore non-concrete values like getters and setters\r\n     // for now by making sure we have a value.\r\n-    return \"value\" in ownProperties[name];\r\n-  }).map(name => {\r\n-    return createNode(name, `${parentPath}/${name}`, ownProperties[name]);\r\n-  });\r\n+      return \"value\" in ownProperties[name];\r\n+    }).map(name => {\r\n+      return createNode(name, `${parentPath}/${name}`, ownProperties[name]);\r\n+    });\r\n\r\n```\r\n\r\n### Screenshot\r\n\r\n![screen shot 2017-02-10 at 5 05 38 pm](https://cloud.githubusercontent.com/assets/254562/22845980/48e81b64-efb3-11e6-92a3-b266fe61c71e.png)\r\n"},"comment":{"url":"https://api.github.com/repos/devtools-html/debugger.html/issues/comments/279405603","html_url":"https://github.com/devtools-html/debugger.html/issues/1991#issuecomment-279405603","issue_url":"https://api.github.com/repos/devtools-html/debugger.html/issues/1991","id":279405603,"user":{"login":"irfanhudda","id":1755089,"avatar_url":"https://avatars.githubusercontent.com/u/1755089?v=3","gravatar_id":"","url":"https://api.github.com/users/irfanhudda","html_url":"https://github.com/irfanhudda","followers_url":"https://api.github.com/users/irfanhudda/followers","following_url":"https://api.github.com/users/irfanhudda/following{/other_user}","gists_url":"https://api.github.com/users/irfanhudda/gists{/gist_id}","starred_url":"https://api.github.com/users/irfanhudda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/irfanhudda/subscriptions","organizations_url":"https://api.github.com/users/irfanhudda/orgs","repos_url":"https://api.github.com/users/irfanhudda/repos","events_url":"https://api.github.com/users/irfanhudda/events{/privacy}","received_events_url":"https://api.github.com/users/irfanhudda/received_events","type":"User","site_admin":false},"created_at":"2017-02-13T14:23:50Z","updated_at":"2017-02-13T14:23:50Z","body":"I'd like to work on this."}}
{"actor":{"display_login":"irfanhudda"}}