{"action":"created","issue":{"url":"https://api.github.com/repos/graphql/graphiql/issues/629","repository_url":"https://api.github.com/repos/graphql/graphiql","labels_url":"https://api.github.com/repos/graphql/graphiql/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/graphql/graphiql/issues/629/comments","events_url":"https://api.github.com/repos/graphql/graphiql/issues/629/events","html_url":"https://github.com/graphql/graphiql/pull/629","id":271247894,"node_id":"MDExOlB1bGxSZXF1ZXN0MTUwNzA3MzQw","number":629,"title":"Sort fields and enum values by name in Doc Explorer","user":{"login":"dominicbarnes","id":160197,"node_id":"MDQ6VXNlcjE2MDE5Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/160197?v=4","gravatar_id":"","url":"https://api.github.com/users/dominicbarnes","html_url":"https://github.com/dominicbarnes","followers_url":"https://api.github.com/users/dominicbarnes/followers","following_url":"https://api.github.com/users/dominicbarnes/following{/other_user}","gists_url":"https://api.github.com/users/dominicbarnes/gists{/gist_id}","starred_url":"https://api.github.com/users/dominicbarnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominicbarnes/subscriptions","organizations_url":"https://api.github.com/users/dominicbarnes/orgs","repos_url":"https://api.github.com/users/dominicbarnes/repos","events_url":"https://api.github.com/users/dominicbarnes/events{/privacy}","received_events_url":"https://api.github.com/users/dominicbarnes/received_events","type":"User","site_admin":false},"labels":[{"id":291686040,"node_id":"MDU6TGFiZWwyOTE2ODYwNDA=","url":"https://api.github.com/repos/graphql/graphiql/labels/CLA%20Signed","name":"CLA Signed","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-11-05T04:32:05Z","updated_at":"2018-08-23T02:28:46Z","closed_at":"2018-08-23T02:28:46Z","author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/graphql/graphiql/pulls/629","html_url":"https://github.com/graphql/graphiql/pull/629","diff_url":"https://github.com/graphql/graphiql/pull/629.diff","patch_url":"https://github.com/graphql/graphiql/pull/629.patch"},"body":"I noticed that the current doc explorer displays fields and enum values in no particular order, since the underlying value is an object which has no guaranteed enumeration order for keys. I generally get the behavior of following the order defined in my source file, but that's just a coincidence.\r\n\r\nThis PR sorts fields and enum values by their name in alphabetical order, using [String.localeCompare()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare). My primary goal is that this large schemas would be easier to scan.\r\n\r\n~~The diff is a lot bigger than I expected, which came from `prettier` being run automatically during `precommit`. (I can point out the relevant parts of my PR if desired)~~"},"comment":{"url":"https://api.github.com/repos/graphql/graphiql/issues/comments/415261635","html_url":"https://github.com/graphql/graphiql/pull/629#issuecomment-415261635","issue_url":"https://api.github.com/repos/graphql/graphiql/issues/629","id":415261635,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTI2MTYzNQ==","user":{"login":"AGS-","id":7844509,"node_id":"MDQ6VXNlcjc4NDQ1MDk=","avatar_url":"https://avatars0.githubusercontent.com/u/7844509?v=4","gravatar_id":"","url":"https://api.github.com/users/AGS-","html_url":"https://github.com/AGS-","followers_url":"https://api.github.com/users/AGS-/followers","following_url":"https://api.github.com/users/AGS-/following{/other_user}","gists_url":"https://api.github.com/users/AGS-/gists{/gist_id}","starred_url":"https://api.github.com/users/AGS-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AGS-/subscriptions","organizations_url":"https://api.github.com/users/AGS-/orgs","repos_url":"https://api.github.com/users/AGS-/repos","events_url":"https://api.github.com/users/AGS-/events{/privacy}","received_events_url":"https://api.github.com/users/AGS-/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T02:28:46Z","updated_at":"2018-08-23T02:28:46Z","author_association":"MEMBER","body":"Hey, I'm trying to sort through the open PR and since it doesn't seem like we could come to a good consensus on this I'm going to close it for now. I think this would be a nice feature to have if we ever got to the point that we have filtering and sorting options, but for now I think the current behavior is fine. Thanks for taking the time to contribute to GraphiQL!"}}
{"actor":{"display_login":"AGS-"}}