{"action":"reopened","number":315,"pull_request":{"url":"https://api.github.com/repos/SciRuby/daru/pulls/315","id":109097222,"html_url":"https://github.com/SciRuby/daru/pull/315","diff_url":"https://github.com/SciRuby/daru/pull/315.diff","patch_url":"https://github.com/SciRuby/daru/pull/315.patch","issue_url":"https://api.github.com/repos/SciRuby/daru/issues/315","number":315,"state":"open","locked":false,"title":"defining sort for Index and sort_by_index for vector","user":{"login":"Shekharrajak","id":5774448,"avatar_url":"https://avatars0.githubusercontent.com/u/5774448?v=3","gravatar_id":"","url":"https://api.github.com/users/Shekharrajak","html_url":"https://github.com/Shekharrajak","followers_url":"https://api.github.com/users/Shekharrajak/followers","following_url":"https://api.github.com/users/Shekharrajak/following{/other_user}","gists_url":"https://api.github.com/users/Shekharrajak/gists{/gist_id}","starred_url":"https://api.github.com/users/Shekharrajak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shekharrajak/subscriptions","organizations_url":"https://api.github.com/users/Shekharrajak/orgs","repos_url":"https://api.github.com/users/Shekharrajak/repos","events_url":"https://api.github.com/users/Shekharrajak/events{/privacy}","received_events_url":"https://api.github.com/users/Shekharrajak/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/SciRuby/daru/issues/159\r\n\r\n```\r\nirb(main):007:0> dv = Daru::Vector.new [11, Float::NAN, nil], index: [23, 22, 21]\r\n=> #<Daru::Vector(3)>\r\n  23  11\r\n  22 NaN\r\n  21 nil\r\nirb(main):008:0> dv.sort_by_index()\r\n=> #<Daru::Vector(3)>\r\n  21 nil\r\n  22 NaN\r\n  23  11\r\nirb(main):009:0> dv = Daru::Vector.new [11, 12, 13], index: [23, 22, 21]\r\n=> #<Daru::Vector(3)>\r\n  23  11\r\n  22  12\r\n  21  13\r\nirb(main):010:0> dv.sort_by_index()\r\n=> #<Daru::Vector(3)>\r\n  21  13\r\n  22  12\r\n  23  11\r\nirb(main):011:0> dv.sort_by_index(ascending: false)\r\n=> #<Daru::Vector(3)>\r\n  23  11\r\n  22  12\r\n  21  13\r\n```","created_at":"2017-03-04T06:50:36Z","updated_at":"2017-03-20T03:42:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a09599a2c937e4e41b3e8ff447f778d9a57c1f62","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/SciRuby/daru/pulls/315/commits","review_comments_url":"https://api.github.com/repos/SciRuby/daru/pulls/315/comments","review_comment_url":"https://api.github.com/repos/SciRuby/daru/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SciRuby/daru/issues/315/comments","statuses_url":"https://api.github.com/repos/SciRuby/daru/statuses/5f81687239139c7e756865f4158e2b23dc2d8a7c","head":{"label":"Shekharrajak:159_sort_by_index","ref":"159_sort_by_index","sha":"5f81687239139c7e756865f4158e2b23dc2d8a7c","user":{"login":"Shekharrajak","id":5774448,"avatar_url":"https://avatars0.githubusercontent.com/u/5774448?v=3","gravatar_id":"","url":"https://api.github.com/users/Shekharrajak","html_url":"https://github.com/Shekharrajak","followers_url":"https://api.github.com/users/Shekharrajak/followers","following_url":"https://api.github.com/users/Shekharrajak/following{/other_user}","gists_url":"https://api.github.com/users/Shekharrajak/gists{/gist_id}","starred_url":"https://api.github.com/users/Shekharrajak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shekharrajak/subscriptions","organizations_url":"https://api.github.com/users/Shekharrajak/orgs","repos_url":"https://api.github.com/users/Shekharrajak/repos","events_url":"https://api.github.com/users/Shekharrajak/events{/privacy}","received_events_url":"https://api.github.com/users/Shekharrajak/received_events","type":"User","site_admin":false},"repo":{"id":69601299,"name":"daru","full_name":"Shekharrajak/daru","owner":{"login":"Shekharrajak","id":5774448,"avatar_url":"https://avatars0.githubusercontent.com/u/5774448?v=3","gravatar_id":"","url":"https://api.github.com/users/Shekharrajak","html_url":"https://github.com/Shekharrajak","followers_url":"https://api.github.com/users/Shekharrajak/followers","following_url":"https://api.github.com/users/Shekharrajak/following{/other_user}","gists_url":"https://api.github.com/users/Shekharrajak/gists{/gist_id}","starred_url":"https://api.github.com/users/Shekharrajak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shekharrajak/subscriptions","organizations_url":"https://api.github.com/users/Shekharrajak/orgs","repos_url":"https://api.github.com/users/Shekharrajak/repos","events_url":"https://api.github.com/users/Shekharrajak/events{/privacy}","received_events_url":"https://api.github.com/users/Shekharrajak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Shekharrajak/daru","description":"Data Analysis in RUby","fork":true,"url":"https://api.github.com/repos/Shekharrajak/daru","forks_url":"https://api.github.com/repos/Shekharrajak/daru/forks","keys_url":"https://api.github.com/repos/Shekharrajak/daru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shekharrajak/daru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shekharrajak/daru/teams","hooks_url":"https://api.github.com/repos/Shekharrajak/daru/hooks","issue_events_url":"https://api.github.com/repos/Shekharrajak/daru/issues/events{/number}","events_url":"https://api.github.com/repos/Shekharrajak/daru/events","assignees_url":"https://api.github.com/repos/Shekharrajak/daru/assignees{/user}","branches_url":"https://api.github.com/repos/Shekharrajak/daru/branches{/branch}","tags_url":"https://api.github.com/repos/Shekharrajak/daru/tags","blobs_url":"https://api.github.com/repos/Shekharrajak/daru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shekharrajak/daru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shekharrajak/daru/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shekharrajak/daru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shekharrajak/daru/statuses/{sha}","languages_url":"https://api.github.com/repos/Shekharrajak/daru/languages","stargazers_url":"https://api.github.com/repos/Shekharrajak/daru/stargazers","contributors_url":"https://api.github.com/repos/Shekharrajak/daru/contributors","subscribers_url":"https://api.github.com/repos/Shekharrajak/daru/subscribers","subscription_url":"https://api.github.com/repos/Shekharrajak/daru/subscription","commits_url":"https://api.github.com/repos/Shekharrajak/daru/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shekharrajak/daru/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shekharrajak/daru/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shekharrajak/daru/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shekharrajak/daru/contents/{+path}","compare_url":"https://api.github.com/repos/Shekharrajak/daru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shekharrajak/daru/merges","archive_url":"https://api.github.com/repos/Shekharrajak/daru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shekharrajak/daru/downloads","issues_url":"https://api.github.com/repos/Shekharrajak/daru/issues{/number}","pulls_url":"https://api.github.com/repos/Shekharrajak/daru/pulls{/number}","milestones_url":"https://api.github.com/repos/Shekharrajak/daru/milestones{/number}","notifications_url":"https://api.github.com/repos/Shekharrajak/daru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shekharrajak/daru/labels{/name}","releases_url":"https://api.github.com/repos/Shekharrajak/daru/releases{/id}","deployments_url":"https://api.github.com/repos/Shekharrajak/daru/deployments","created_at":"2016-09-29T19:37:42Z","updated_at":"2016-09-29T19:37:43Z","pushed_at":"2017-03-19T20:01:07Z","git_url":"git://github.com/Shekharrajak/daru.git","ssh_url":"git@github.com:Shekharrajak/daru.git","clone_url":"https://github.com/Shekharrajak/daru.git","svn_url":"https://github.com/Shekharrajak/daru","homepage":null,"size":3854,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"SciRuby:master","ref":"master","sha":"46b0362d233b3a1fa02195c13662f218d5cdc2ac","user":{"login":"SciRuby","id":550805,"avatar_url":"https://avatars0.githubusercontent.com/u/550805?v=3","gravatar_id":"","url":"https://api.github.com/users/SciRuby","html_url":"https://github.com/SciRuby","followers_url":"https://api.github.com/users/SciRuby/followers","following_url":"https://api.github.com/users/SciRuby/following{/other_user}","gists_url":"https://api.github.com/users/SciRuby/gists{/gist_id}","starred_url":"https://api.github.com/users/SciRuby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciRuby/subscriptions","organizations_url":"https://api.github.com/users/SciRuby/orgs","repos_url":"https://api.github.com/users/SciRuby/repos","events_url":"https://api.github.com/users/SciRuby/events{/privacy}","received_events_url":"https://api.github.com/users/SciRuby/received_events","type":"Organization","site_admin":false},"repo":{"id":24784998,"name":"daru","full_name":"SciRuby/daru","owner":{"login":"SciRuby","id":550805,"avatar_url":"https://avatars0.githubusercontent.com/u/550805?v=3","gravatar_id":"","url":"https://api.github.com/users/SciRuby","html_url":"https://github.com/SciRuby","followers_url":"https://api.github.com/users/SciRuby/followers","following_url":"https://api.github.com/users/SciRuby/following{/other_user}","gists_url":"https://api.github.com/users/SciRuby/gists{/gist_id}","starred_url":"https://api.github.com/users/SciRuby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SciRuby/subscriptions","organizations_url":"https://api.github.com/users/SciRuby/orgs","repos_url":"https://api.github.com/users/SciRuby/repos","events_url":"https://api.github.com/users/SciRuby/events{/privacy}","received_events_url":"https://api.github.com/users/SciRuby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SciRuby/daru","description":"Data Analysis in RUby","fork":false,"url":"https://api.github.com/repos/SciRuby/daru","forks_url":"https://api.github.com/repos/SciRuby/daru/forks","keys_url":"https://api.github.com/repos/SciRuby/daru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SciRuby/daru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SciRuby/daru/teams","hooks_url":"https://api.github.com/repos/SciRuby/daru/hooks","issue_events_url":"https://api.github.com/repos/SciRuby/daru/issues/events{/number}","events_url":"https://api.github.com/repos/SciRuby/daru/events","assignees_url":"https://api.github.com/repos/SciRuby/daru/assignees{/user}","branches_url":"https://api.github.com/repos/SciRuby/daru/branches{/branch}","tags_url":"https://api.github.com/repos/SciRuby/daru/tags","blobs_url":"https://api.github.com/repos/SciRuby/daru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SciRuby/daru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SciRuby/daru/git/refs{/sha}","trees_url":"https://api.github.com/repos/SciRuby/daru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SciRuby/daru/statuses/{sha}","languages_url":"https://api.github.com/repos/SciRuby/daru/languages","stargazers_url":"https://api.github.com/repos/SciRuby/daru/stargazers","contributors_url":"https://api.github.com/repos/SciRuby/daru/contributors","subscribers_url":"https://api.github.com/repos/SciRuby/daru/subscribers","subscription_url":"https://api.github.com/repos/SciRuby/daru/subscription","commits_url":"https://api.github.com/repos/SciRuby/daru/commits{/sha}","git_commits_url":"https://api.github.com/repos/SciRuby/daru/git/commits{/sha}","comments_url":"https://api.github.com/repos/SciRuby/daru/comments{/number}","issue_comment_url":"https://api.github.com/repos/SciRuby/daru/issues/comments{/number}","contents_url":"https://api.github.com/repos/SciRuby/daru/contents/{+path}","compare_url":"https://api.github.com/repos/SciRuby/daru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SciRuby/daru/merges","archive_url":"https://api.github.com/repos/SciRuby/daru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SciRuby/daru/downloads","issues_url":"https://api.github.com/repos/SciRuby/daru/issues{/number}","pulls_url":"https://api.github.com/repos/SciRuby/daru/pulls{/number}","milestones_url":"https://api.github.com/repos/SciRuby/daru/milestones{/number}","notifications_url":"https://api.github.com/repos/SciRuby/daru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SciRuby/daru/labels{/name}","releases_url":"https://api.github.com/repos/SciRuby/daru/releases{/id}","deployments_url":"https://api.github.com/repos/SciRuby/daru/deployments","created_at":"2014-10-04T08:23:21Z","updated_at":"2017-03-17T05:05:35Z","pushed_at":"2017-03-19T20:01:08Z","git_url":"git://github.com/SciRuby/daru.git","ssh_url":"git@github.com:SciRuby/daru.git","clone_url":"https://github.com/SciRuby/daru.git","svn_url":"https://github.com/SciRuby/daru","homepage":null,"size":3842,"stargazers_count":400,"watchers_count":400,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":59,"mirror_url":null,"open_issues_count":52,"forks":59,"open_issues":52,"watchers":400,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SciRuby/daru/pulls/315"},"html":{"href":"https://github.com/SciRuby/daru/pull/315"},"issue":{"href":"https://api.github.com/repos/SciRuby/daru/issues/315"},"comments":{"href":"https://api.github.com/repos/SciRuby/daru/issues/315/comments"},"review_comments":{"href":"https://api.github.com/repos/SciRuby/daru/pulls/315/comments"},"review_comment":{"href":"https://api.github.com/repos/SciRuby/daru/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SciRuby/daru/pulls/315/commits"},"statuses":{"href":"https://api.github.com/repos/SciRuby/daru/statuses/5f81687239139c7e756865f4158e2b23dc2d8a7c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":2,"review_comments":44,"maintainer_can_modify":true,"commits":3,"additions":91,"deletions":4,"changed_files":4}}
{"actor":{"display_login":"Shekharrajak"}}