{"action":"created","comment":{"url":"https://api.github.com/repos/Rebilly/ReDoc/pulls/comments/134941637","pull_request_review_id":58291318,"id":134941637,"diff_hunk":"@@ -0,0 +1,23 @@\n+export const endpointComparator = (a, b) => {","path":"lib/components/SideMenu/sort.ts","position":1,"original_position":1,"commit_id":"cd348d18e99f8e88b81db0306ab8445099cfe782","original_commit_id":"cd348d18e99f8e88b81db0306ab8445099cfe782","user":{"login":"RomanGotsiy","id":3975738,"avatar_url":"https://avatars0.githubusercontent.com/u/3975738?v=4","gravatar_id":"","url":"https://api.github.com/users/RomanGotsiy","html_url":"https://github.com/RomanGotsiy","followers_url":"https://api.github.com/users/RomanGotsiy/followers","following_url":"https://api.github.com/users/RomanGotsiy/following{/other_user}","gists_url":"https://api.github.com/users/RomanGotsiy/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanGotsiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanGotsiy/subscriptions","organizations_url":"https://api.github.com/users/RomanGotsiy/orgs","repos_url":"https://api.github.com/users/RomanGotsiy/repos","events_url":"https://api.github.com/users/RomanGotsiy/events{/privacy}","received_events_url":"https://api.github.com/users/RomanGotsiy/received_events","type":"User","site_admin":false},"body":"Could you change this method to sort items **if only** `sortOrder` is specified?\r\nOtherwise, this will introduce breaking changes as many ReDoc users rely on the current order (preserved from JSON)","created_at":"2017-08-24T07:11:48Z","updated_at":"2017-08-24T07:16:16Z","html_url":"https://github.com/Rebilly/ReDoc/pull/328#discussion_r134941637","pull_request_url":"https://api.github.com/repos/Rebilly/ReDoc/pulls/328","_links":{"self":{"href":"https://api.github.com/repos/Rebilly/ReDoc/pulls/comments/134941637"},"html":{"href":"https://github.com/Rebilly/ReDoc/pull/328#discussion_r134941637"},"pull_request":{"href":"https://api.github.com/repos/Rebilly/ReDoc/pulls/328"}}},"pull_request":{"url":"https://api.github.com/repos/Rebilly/ReDoc/pulls/328","id":136255833,"html_url":"https://github.com/Rebilly/ReDoc/pull/328","diff_url":"https://github.com/Rebilly/ReDoc/pull/328.diff","patch_url":"https://github.com/Rebilly/ReDoc/pull/328.patch","issue_url":"https://api.github.com/repos/Rebilly/ReDoc/issues/328","number":328,"state":"open","locked":false,"title":"Feature/sorting","user":{"login":"Darkey999","id":25509468,"avatar_url":"https://avatars1.githubusercontent.com/u/25509468?v=4","gravatar_id":"","url":"https://api.github.com/users/Darkey999","html_url":"https://github.com/Darkey999","followers_url":"https://api.github.com/users/Darkey999/followers","following_url":"https://api.github.com/users/Darkey999/following{/other_user}","gists_url":"https://api.github.com/users/Darkey999/gists{/gist_id}","starred_url":"https://api.github.com/users/Darkey999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Darkey999/subscriptions","organizations_url":"https://api.github.com/users/Darkey999/orgs","repos_url":"https://api.github.com/users/Darkey999/repos","events_url":"https://api.github.com/users/Darkey999/events{/privacy}","received_events_url":"https://api.github.com/users/Darkey999/received_events","type":"User","site_admin":false},"body":"As requested in: #98 I've added sorting:\r\n\r\n- By default, it first sorts elements by the name of the operation (delete, get, post etc.), then by the name of the endpoint (add pet, update pet etc.)\r\n- You can use `x-sort-order` to override default sorting and arrange endpoints in any way you want, check redoc-vendor-extensions.md for description and example\r\n\r\nIf you want to see the effect, click [here](http://maksok.cba.pl/api/testing.html).\r\nTo get the file, click [here](https://darkey999.github.io/redoc-sort.min.js).","created_at":"2017-08-17T13:23:47Z","updated_at":"2017-08-24T07:16:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b21efe60ebd40163f3ab73efff5a351f12f78613","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Rebilly/ReDoc/pulls/328/commits","review_comments_url":"https://api.github.com/repos/Rebilly/ReDoc/pulls/328/comments","review_comment_url":"https://api.github.com/repos/Rebilly/ReDoc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Rebilly/ReDoc/issues/328/comments","statuses_url":"https://api.github.com/repos/Rebilly/ReDoc/statuses/cd348d18e99f8e88b81db0306ab8445099cfe782","head":{"label":"Darkey999:feature/sorting","ref":"feature/sorting","sha":"cd348d18e99f8e88b81db0306ab8445099cfe782","user":{"login":"Darkey999","id":25509468,"avatar_url":"https://avatars1.githubusercontent.com/u/25509468?v=4","gravatar_id":"","url":"https://api.github.com/users/Darkey999","html_url":"https://github.com/Darkey999","followers_url":"https://api.github.com/users/Darkey999/followers","following_url":"https://api.github.com/users/Darkey999/following{/other_user}","gists_url":"https://api.github.com/users/Darkey999/gists{/gist_id}","starred_url":"https://api.github.com/users/Darkey999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Darkey999/subscriptions","organizations_url":"https://api.github.com/users/Darkey999/orgs","repos_url":"https://api.github.com/users/Darkey999/repos","events_url":"https://api.github.com/users/Darkey999/events{/privacy}","received_events_url":"https://api.github.com/users/Darkey999/received_events","type":"User","site_admin":false},"repo":{"id":99341844,"name":"ReDoc","full_name":"Darkey999/ReDoc","owner":{"login":"Darkey999","id":25509468,"avatar_url":"https://avatars1.githubusercontent.com/u/25509468?v=4","gravatar_id":"","url":"https://api.github.com/users/Darkey999","html_url":"https://github.com/Darkey999","followers_url":"https://api.github.com/users/Darkey999/followers","following_url":"https://api.github.com/users/Darkey999/following{/other_user}","gists_url":"https://api.github.com/users/Darkey999/gists{/gist_id}","starred_url":"https://api.github.com/users/Darkey999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Darkey999/subscriptions","organizations_url":"https://api.github.com/users/Darkey999/orgs","repos_url":"https://api.github.com/users/Darkey999/repos","events_url":"https://api.github.com/users/Darkey999/events{/privacy}","received_events_url":"https://api.github.com/users/Darkey999/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Darkey999/ReDoc","description":"📘  OpenAPI/Swagger-generated API Reference Documentation","fork":true,"url":"https://api.github.com/repos/Darkey999/ReDoc","forks_url":"https://api.github.com/repos/Darkey999/ReDoc/forks","keys_url":"https://api.github.com/repos/Darkey999/ReDoc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Darkey999/ReDoc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Darkey999/ReDoc/teams","hooks_url":"https://api.github.com/repos/Darkey999/ReDoc/hooks","issue_events_url":"https://api.github.com/repos/Darkey999/ReDoc/issues/events{/number}","events_url":"https://api.github.com/repos/Darkey999/ReDoc/events","assignees_url":"https://api.github.com/repos/Darkey999/ReDoc/assignees{/user}","branches_url":"https://api.github.com/repos/Darkey999/ReDoc/branches{/branch}","tags_url":"https://api.github.com/repos/Darkey999/ReDoc/tags","blobs_url":"https://api.github.com/repos/Darkey999/ReDoc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Darkey999/ReDoc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Darkey999/ReDoc/git/refs{/sha}","trees_url":"https://api.github.com/repos/Darkey999/ReDoc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Darkey999/ReDoc/statuses/{sha}","languages_url":"https://api.github.com/repos/Darkey999/ReDoc/languages","stargazers_url":"https://api.github.com/repos/Darkey999/ReDoc/stargazers","contributors_url":"https://api.github.com/repos/Darkey999/ReDoc/contributors","subscribers_url":"https://api.github.com/repos/Darkey999/ReDoc/subscribers","subscription_url":"https://api.github.com/repos/Darkey999/ReDoc/subscription","commits_url":"https://api.github.com/repos/Darkey999/ReDoc/commits{/sha}","git_commits_url":"https://api.github.com/repos/Darkey999/ReDoc/git/commits{/sha}","comments_url":"https://api.github.com/repos/Darkey999/ReDoc/comments{/number}","issue_comment_url":"https://api.github.com/repos/Darkey999/ReDoc/issues/comments{/number}","contents_url":"https://api.github.com/repos/Darkey999/ReDoc/contents/{+path}","compare_url":"https://api.github.com/repos/Darkey999/ReDoc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Darkey999/ReDoc/merges","archive_url":"https://api.github.com/repos/Darkey999/ReDoc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Darkey999/ReDoc/downloads","issues_url":"https://api.github.com/repos/Darkey999/ReDoc/issues{/number}","pulls_url":"https://api.github.com/repos/Darkey999/ReDoc/pulls{/number}","milestones_url":"https://api.github.com/repos/Darkey999/ReDoc/milestones{/number}","notifications_url":"https://api.github.com/repos/Darkey999/ReDoc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Darkey999/ReDoc/labels{/name}","releases_url":"https://api.github.com/repos/Darkey999/ReDoc/releases{/id}","deployments_url":"https://api.github.com/repos/Darkey999/ReDoc/deployments","created_at":"2017-08-04T12:42:58Z","updated_at":"2017-08-04T12:43:00Z","pushed_at":"2017-08-17T11:49:14Z","git_url":"git://github.com/Darkey999/ReDoc.git","ssh_url":"git@github.com:Darkey999/ReDoc.git","clone_url":"https://github.com/Darkey999/ReDoc.git","svn_url":"https://github.com/Darkey999/ReDoc","homepage":"https://rebilly.github.io/ReDoc/","size":44527,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Rebilly:master","ref":"master","sha":"6b61d3aee1fde06720c68409cd641946df6d88de","user":{"login":"Rebilly","id":6365848,"avatar_url":"https://avatars1.githubusercontent.com/u/6365848?v=4","gravatar_id":"","url":"https://api.github.com/users/Rebilly","html_url":"https://github.com/Rebilly","followers_url":"https://api.github.com/users/Rebilly/followers","following_url":"https://api.github.com/users/Rebilly/following{/other_user}","gists_url":"https://api.github.com/users/Rebilly/gists{/gist_id}","starred_url":"https://api.github.com/users/Rebilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rebilly/subscriptions","organizations_url":"https://api.github.com/users/Rebilly/orgs","repos_url":"https://api.github.com/users/Rebilly/repos","events_url":"https://api.github.com/users/Rebilly/events{/privacy}","received_events_url":"https://api.github.com/users/Rebilly/received_events","type":"Organization","site_admin":false},"repo":{"id":45250726,"name":"ReDoc","full_name":"Rebilly/ReDoc","owner":{"login":"Rebilly","id":6365848,"avatar_url":"https://avatars1.githubusercontent.com/u/6365848?v=4","gravatar_id":"","url":"https://api.github.com/users/Rebilly","html_url":"https://github.com/Rebilly","followers_url":"https://api.github.com/users/Rebilly/followers","following_url":"https://api.github.com/users/Rebilly/following{/other_user}","gists_url":"https://api.github.com/users/Rebilly/gists{/gist_id}","starred_url":"https://api.github.com/users/Rebilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rebilly/subscriptions","organizations_url":"https://api.github.com/users/Rebilly/orgs","repos_url":"https://api.github.com/users/Rebilly/repos","events_url":"https://api.github.com/users/Rebilly/events{/privacy}","received_events_url":"https://api.github.com/users/Rebilly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Rebilly/ReDoc","description":"📘  OpenAPI/Swagger-generated API Reference Documentation","fork":false,"url":"https://api.github.com/repos/Rebilly/ReDoc","forks_url":"https://api.github.com/repos/Rebilly/ReDoc/forks","keys_url":"https://api.github.com/repos/Rebilly/ReDoc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rebilly/ReDoc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rebilly/ReDoc/teams","hooks_url":"https://api.github.com/repos/Rebilly/ReDoc/hooks","issue_events_url":"https://api.github.com/repos/Rebilly/ReDoc/issues/events{/number}","events_url":"https://api.github.com/repos/Rebilly/ReDoc/events","assignees_url":"https://api.github.com/repos/Rebilly/ReDoc/assignees{/user}","branches_url":"https://api.github.com/repos/Rebilly/ReDoc/branches{/branch}","tags_url":"https://api.github.com/repos/Rebilly/ReDoc/tags","blobs_url":"https://api.github.com/repos/Rebilly/ReDoc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rebilly/ReDoc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rebilly/ReDoc/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rebilly/ReDoc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rebilly/ReDoc/statuses/{sha}","languages_url":"https://api.github.com/repos/Rebilly/ReDoc/languages","stargazers_url":"https://api.github.com/repos/Rebilly/ReDoc/stargazers","contributors_url":"https://api.github.com/repos/Rebilly/ReDoc/contributors","subscribers_url":"https://api.github.com/repos/Rebilly/ReDoc/subscribers","subscription_url":"https://api.github.com/repos/Rebilly/ReDoc/subscription","commits_url":"https://api.github.com/repos/Rebilly/ReDoc/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rebilly/ReDoc/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rebilly/ReDoc/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rebilly/ReDoc/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rebilly/ReDoc/contents/{+path}","compare_url":"https://api.github.com/repos/Rebilly/ReDoc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rebilly/ReDoc/merges","archive_url":"https://api.github.com/repos/Rebilly/ReDoc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rebilly/ReDoc/downloads","issues_url":"https://api.github.com/repos/Rebilly/ReDoc/issues{/number}","pulls_url":"https://api.github.com/repos/Rebilly/ReDoc/pulls{/number}","milestones_url":"https://api.github.com/repos/Rebilly/ReDoc/milestones{/number}","notifications_url":"https://api.github.com/repos/Rebilly/ReDoc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rebilly/ReDoc/labels{/name}","releases_url":"https://api.github.com/repos/Rebilly/ReDoc/releases{/id}","deployments_url":"https://api.github.com/repos/Rebilly/ReDoc/deployments","created_at":"2015-10-30T12:53:02Z","updated_at":"2017-08-24T07:11:26Z","pushed_at":"2017-08-21T09:16:01Z","git_url":"git://github.com/Rebilly/ReDoc.git","ssh_url":"git@github.com:Rebilly/ReDoc.git","clone_url":"https://github.com/Rebilly/ReDoc.git","svn_url":"https://github.com/Rebilly/ReDoc","homepage":"https://rebilly.github.io/ReDoc/","size":44532,"stargazers_count":1298,"watchers_count":1298,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":147,"mirror_url":null,"open_issues_count":54,"forks":147,"open_issues":54,"watchers":1298,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Rebilly/ReDoc/pulls/328"},"html":{"href":"https://github.com/Rebilly/ReDoc/pull/328"},"issue":{"href":"https://api.github.com/repos/Rebilly/ReDoc/issues/328"},"comments":{"href":"https://api.github.com/repos/Rebilly/ReDoc/issues/328/comments"},"review_comments":{"href":"https://api.github.com/repos/Rebilly/ReDoc/pulls/328/comments"},"review_comment":{"href":"https://api.github.com/repos/Rebilly/ReDoc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Rebilly/ReDoc/pulls/328/commits"},"statuses":{"href":"https://api.github.com/repos/Rebilly/ReDoc/statuses/cd348d18e99f8e88b81db0306ab8445099cfe782"}}}}
{"actor":{"display_login":"RomanGotsiy"}}