{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/react-native/pulls/comments/36572947","id":36572947,"diff_hunk":"@@ -140,15 +143,42 @@ var ComponentDoc = React.createClass({\n         {(composes || []).map((name) =>\n           this.renderCompose(name)\n         )}\n-        {Object.keys(props).sort().map((name) =>\n+        {Object.keys(props)\n+          .sort((a, b) => {\n+            a = props[a];\n+            b = props[b];\n+\n+            if (a.platforms && !b.platforms) {\n+              return 1;\n+            }\n+            if (b.platforms && !a.platforms) {\n+              return -1;\n+            }\n+            return a.name < b.name;\n+          })\n+          .map((name) =>","path":"website/layout/AutodocsLayout.js","position":37,"original_position":37,"commit_id":"6e9ceaa3489997f2e0aa7ae9a44a761c9da27507","original_commit_id":"6e9ceaa3489997f2e0aa7ae9a44a761c9da27507","user":{"login":"mkonicek","id":346214,"avatar_url":"https://avatars.githubusercontent.com/u/346214?v=3","gravatar_id":"","url":"https://api.github.com/users/mkonicek","html_url":"https://github.com/mkonicek","followers_url":"https://api.github.com/users/mkonicek/followers","following_url":"https://api.github.com/users/mkonicek/following{/other_user}","gists_url":"https://api.github.com/users/mkonicek/gists{/gist_id}","starred_url":"https://api.github.com/users/mkonicek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkonicek/subscriptions","organizations_url":"https://api.github.com/users/mkonicek/orgs","repos_url":"https://api.github.com/users/mkonicek/repos","events_url":"https://api.github.com/users/mkonicek/events{/privacy}","received_events_url":"https://api.github.com/users/mkonicek/received_events","type":"User","site_admin":false},"body":"Whoops, just noticed the props are not sorted alphabetically (although this code looks good).\r\n\r\nhttps://facebook.github.io/react-native/docs/image.html#content","created_at":"2015-08-08T01:13:17Z","updated_at":"2015-08-08T01:13:17Z","html_url":"https://github.com/facebook/react-native/pull/2264#discussion_r36572947","pull_request_url":"https://api.github.com/repos/facebook/react-native/pulls/2264","_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments/36572947"},"html":{"href":"https://github.com/facebook/react-native/pull/2264#discussion_r36572947"},"pull_request":{"href":"https://api.github.com/repos/facebook/react-native/pulls/2264"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/2264","id":41914984,"html_url":"https://github.com/facebook/react-native/pull/2264","diff_url":"https://github.com/facebook/react-native/pull/2264.diff","patch_url":"https://github.com/facebook/react-native/pull/2264.patch","issue_url":"https://api.github.com/repos/facebook/react-native/issues/2264","number":2264,"state":"closed","locked":false,"title":"[Website] Platform-specific props","user":{"login":"vjeux","id":197597,"avatar_url":"https://avatars.githubusercontent.com/u/197597?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeux","html_url":"https://github.com/vjeux","followers_url":"https://api.github.com/users/vjeux/followers","following_url":"https://api.github.com/users/vjeux/following{/other_user}","gists_url":"https://api.github.com/users/vjeux/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeux/subscriptions","organizations_url":"https://api.github.com/users/vjeux/orgs","repos_url":"https://api.github.com/users/vjeux/repos","events_url":"https://api.github.com/users/vjeux/events{/privacy}","received_events_url":"https://api.github.com/users/vjeux/received_events","type":"User","site_admin":false},"body":"We are annotating platform-specific props with a special @platform tag in the docblocks. This pull request adds a little [ios] tag before the name and sorts the props such as generic ones are before platform-specific ones.\r\n\r\n<img width=\"679\" alt=\"screen shot 2015-08-07 at 10 26 16 am\" src=\"https://cloud.githubusercontent.com/assets/197597/9141759/d4f5a1bc-3cef-11e5-8282-77defdc6e23b.png\">\r\n","created_at":"2015-08-07T17:34:09Z","updated_at":"2015-08-08T01:13:17Z","closed_at":"2015-08-07T17:39:04Z","merged_at":"2015-08-07T17:39:04Z","merge_commit_sha":"da925c8a02f5aa0c8eea278a31e2825253d9ca94","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/react-native/pulls/2264/commits","review_comments_url":"https://api.github.com/repos/facebook/react-native/pulls/2264/comments","review_comment_url":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/2264/comments","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/6e9ceaa3489997f2e0aa7ae9a44a761c9da27507","head":{"label":"vjeux:platform_props","ref":"platform_props","sha":"6e9ceaa3489997f2e0aa7ae9a44a761c9da27507","user":{"login":"vjeux","id":197597,"avatar_url":"https://avatars.githubusercontent.com/u/197597?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeux","html_url":"https://github.com/vjeux","followers_url":"https://api.github.com/users/vjeux/followers","following_url":"https://api.github.com/users/vjeux/following{/other_user}","gists_url":"https://api.github.com/users/vjeux/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeux/subscriptions","organizations_url":"https://api.github.com/users/vjeux/orgs","repos_url":"https://api.github.com/users/vjeux/repos","events_url":"https://api.github.com/users/vjeux/events{/privacy}","received_events_url":"https://api.github.com/users/vjeux/received_events","type":"User","site_admin":false},"repo":{"id":33162154,"name":"react-native","full_name":"vjeux/react-native","owner":{"login":"vjeux","id":197597,"avatar_url":"https://avatars.githubusercontent.com/u/197597?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeux","html_url":"https://github.com/vjeux","followers_url":"https://api.github.com/users/vjeux/followers","following_url":"https://api.github.com/users/vjeux/following{/other_user}","gists_url":"https://api.github.com/users/vjeux/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeux/subscriptions","organizations_url":"https://api.github.com/users/vjeux/orgs","repos_url":"https://api.github.com/users/vjeux/repos","events_url":"https://api.github.com/users/vjeux/events{/privacy}","received_events_url":"https://api.github.com/users/vjeux/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vjeux/react-native","description":"A framework for building native apps with React.","fork":true,"url":"https://api.github.com/repos/vjeux/react-native","forks_url":"https://api.github.com/repos/vjeux/react-native/forks","keys_url":"https://api.github.com/repos/vjeux/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vjeux/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vjeux/react-native/teams","hooks_url":"https://api.github.com/repos/vjeux/react-native/hooks","issue_events_url":"https://api.github.com/repos/vjeux/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/vjeux/react-native/events","assignees_url":"https://api.github.com/repos/vjeux/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/vjeux/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/vjeux/react-native/tags","blobs_url":"https://api.github.com/repos/vjeux/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vjeux/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vjeux/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/vjeux/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vjeux/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/vjeux/react-native/languages","stargazers_url":"https://api.github.com/repos/vjeux/react-native/stargazers","contributors_url":"https://api.github.com/repos/vjeux/react-native/contributors","subscribers_url":"https://api.github.com/repos/vjeux/react-native/subscribers","subscription_url":"https://api.github.com/repos/vjeux/react-native/subscription","commits_url":"https://api.github.com/repos/vjeux/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/vjeux/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/vjeux/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/vjeux/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/vjeux/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/vjeux/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vjeux/react-native/merges","archive_url":"https://api.github.com/repos/vjeux/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vjeux/react-native/downloads","issues_url":"https://api.github.com/repos/vjeux/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/vjeux/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/vjeux/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/vjeux/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vjeux/react-native/labels{/name}","releases_url":"https://api.github.com/repos/vjeux/react-native/releases{/id}","created_at":"2015-03-31T03:10:42Z","updated_at":"2015-04-16T22:23:52Z","pushed_at":"2015-08-07T17:32:36Z","git_url":"git://github.com/vjeux/react-native.git","ssh_url":"git@github.com:vjeux/react-native.git","clone_url":"https://github.com/vjeux/react-native.git","svn_url":"https://github.com/vjeux/react-native","homepage":"http://facebook.github.io/react-native/","size":21594,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"3309f6da80a53e14b932e73a66ed264803e0fbb1","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":29028775,"name":"react-native","full_name":"facebook/react-native","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/react-native","description":"A framework for building native apps with React.","fork":false,"url":"https://api.github.com/repos/facebook/react-native","forks_url":"https://api.github.com/repos/facebook/react-native/forks","keys_url":"https://api.github.com/repos/facebook/react-native/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/react-native/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/react-native/teams","hooks_url":"https://api.github.com/repos/facebook/react-native/hooks","issue_events_url":"https://api.github.com/repos/facebook/react-native/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/react-native/events","assignees_url":"https://api.github.com/repos/facebook/react-native/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/react-native/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/react-native/tags","blobs_url":"https://api.github.com/repos/facebook/react-native/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/react-native/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/react-native/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/react-native/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/react-native/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/react-native/languages","stargazers_url":"https://api.github.com/repos/facebook/react-native/stargazers","contributors_url":"https://api.github.com/repos/facebook/react-native/contributors","subscribers_url":"https://api.github.com/repos/facebook/react-native/subscribers","subscription_url":"https://api.github.com/repos/facebook/react-native/subscription","commits_url":"https://api.github.com/repos/facebook/react-native/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/react-native/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/react-native/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/react-native/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/react-native/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/react-native/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/react-native/merges","archive_url":"https://api.github.com/repos/facebook/react-native/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/react-native/downloads","issues_url":"https://api.github.com/repos/facebook/react-native/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/react-native/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/react-native/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/react-native/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/react-native/labels{/name}","releases_url":"https://api.github.com/repos/facebook/react-native/releases{/id}","created_at":"2015-01-09T18:10:16Z","updated_at":"2015-08-08T00:36:04Z","pushed_at":"2015-08-07T23:42:20Z","git_url":"git://github.com/facebook/react-native.git","ssh_url":"git@github.com:facebook/react-native.git","clone_url":"https://github.com/facebook/react-native.git","svn_url":"https://github.com/facebook/react-native","homepage":"http://facebook.github.io/react-native/","size":54936,"stargazers_count":16425,"watchers_count":16425,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2117,"mirror_url":null,"open_issues_count":491,"forks":2117,"open_issues":491,"watchers":16425,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/react-native/pulls/2264"},"html":{"href":"https://github.com/facebook/react-native/pull/2264"},"issue":{"href":"https://api.github.com/repos/facebook/react-native/issues/2264"},"comments":{"href":"https://api.github.com/repos/facebook/react-native/issues/2264/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/react-native/pulls/2264/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/react-native/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/react-native/pulls/2264/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/react-native/statuses/6e9ceaa3489997f2e0aa7ae9a44a761c9da27507"}}}}