{"action":"created","comment":{"url":"https://api.github.com/repos/sande570/Moro-database/pulls/comments/52097847","id":52097847,"diff_hunk":"@@ -115,6 +117,23 @@\n         return rtnWord;\n     }\n \n+    //Process dict with count to sorted dict without count value\n+    function sortAndRemoveCount(dict) {\n+        var toRtn = JSON.parse(JSON.stringify(dict));\n+        for(var i=0; i<toRtn.length; ++i) {\n+            toRtn[i][\"moroword\"].sort(function(a, b) {\n+                return parseFloat(b[\"count\"]) - parseFloat(a[\"count\"]);","path":"moroScript.jsx","position":44,"original_position":44,"commit_id":"c44f2f23afc53f2b55590b7a56e245eedbaa45e3","original_commit_id":"c44f2f23afc53f2b55590b7a56e245eedbaa45e3","user":{"login":"maytasm","id":11949745,"avatar_url":"https://avatars.githubusercontent.com/u/11949745?v=3","gravatar_id":"","url":"https://api.github.com/users/maytasm","html_url":"https://github.com/maytasm","followers_url":"https://api.github.com/users/maytasm/followers","following_url":"https://api.github.com/users/maytasm/following{/other_user}","gists_url":"https://api.github.com/users/maytasm/gists{/gist_id}","starred_url":"https://api.github.com/users/maytasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maytasm/subscriptions","organizations_url":"https://api.github.com/users/maytasm/orgs","repos_url":"https://api.github.com/users/maytasm/repos","events_url":"https://api.github.com/users/maytasm/events{/privacy}","received_events_url":"https://api.github.com/users/maytasm/received_events","type":"User","site_admin":false},"body":"Taking another look, I think the parseFloat is not actually needed.","created_at":"2016-02-06T04:45:29Z","updated_at":"2016-02-06T04:45:29Z","html_url":"https://github.com/sande570/Moro-database/pull/4#discussion_r52097847","pull_request_url":"https://api.github.com/repos/sande570/Moro-database/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/sande570/Moro-database/pulls/comments/52097847"},"html":{"href":"https://github.com/sande570/Moro-database/pull/4#discussion_r52097847"},"pull_request":{"href":"https://api.github.com/repos/sande570/Moro-database/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/sande570/Moro-database/pulls/4","id":58510109,"html_url":"https://github.com/sande570/Moro-database/pull/4","diff_url":"https://github.com/sande570/Moro-database/pull/4.diff","patch_url":"https://github.com/sande570/Moro-database/pull/4.patch","issue_url":"https://api.github.com/repos/sande570/Moro-database/issues/4","number":4,"state":"open","locked":false,"title":"Frequency dictionary","user":{"login":"sarum90","id":604129,"avatar_url":"https://avatars.githubusercontent.com/u/604129?v=3","gravatar_id":"","url":"https://api.github.com/users/sarum90","html_url":"https://github.com/sarum90","followers_url":"https://api.github.com/users/sarum90/followers","following_url":"https://api.github.com/users/sarum90/following{/other_user}","gists_url":"https://api.github.com/users/sarum90/gists{/gist_id}","starred_url":"https://api.github.com/users/sarum90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarum90/subscriptions","organizations_url":"https://api.github.com/users/sarum90/orgs","repos_url":"https://api.github.com/users/sarum90/repos","events_url":"https://api.github.com/users/sarum90/events{/privacy}","received_events_url":"https://api.github.com/users/sarum90/received_events","type":"User","site_admin":false},"body":"Adds frequency counts to the dictionary entries.","created_at":"2016-02-06T03:25:56Z","updated_at":"2016-02-06T04:45:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f56347234f49b8d693008af75fcf53b0117cf048","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sande570/Moro-database/pulls/4/commits","review_comments_url":"https://api.github.com/repos/sande570/Moro-database/pulls/4/comments","review_comment_url":"https://api.github.com/repos/sande570/Moro-database/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sande570/Moro-database/issues/4/comments","statuses_url":"https://api.github.com/repos/sande570/Moro-database/statuses/c44f2f23afc53f2b55590b7a56e245eedbaa45e3","head":{"label":"sande570:freqDict","ref":"freqDict","sha":"c44f2f23afc53f2b55590b7a56e245eedbaa45e3","user":{"login":"sande570","id":10971280,"avatar_url":"https://avatars.githubusercontent.com/u/10971280?v=3","gravatar_id":"","url":"https://api.github.com/users/sande570","html_url":"https://github.com/sande570","followers_url":"https://api.github.com/users/sande570/followers","following_url":"https://api.github.com/users/sande570/following{/other_user}","gists_url":"https://api.github.com/users/sande570/gists{/gist_id}","starred_url":"https://api.github.com/users/sande570/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sande570/subscriptions","organizations_url":"https://api.github.com/users/sande570/orgs","repos_url":"https://api.github.com/users/sande570/repos","events_url":"https://api.github.com/users/sande570/events{/privacy}","received_events_url":"https://api.github.com/users/sande570/received_events","type":"User","site_admin":false},"repo":{"id":45206728,"name":"Moro-database","full_name":"sande570/Moro-database","owner":{"login":"sande570","id":10971280,"avatar_url":"https://avatars.githubusercontent.com/u/10971280?v=3","gravatar_id":"","url":"https://api.github.com/users/sande570","html_url":"https://github.com/sande570","followers_url":"https://api.github.com/users/sande570/followers","following_url":"https://api.github.com/users/sande570/following{/other_user}","gists_url":"https://api.github.com/users/sande570/gists{/gist_id}","starred_url":"https://api.github.com/users/sande570/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sande570/subscriptions","organizations_url":"https://api.github.com/users/sande570/orgs","repos_url":"https://api.github.com/users/sande570/repos","events_url":"https://api.github.com/users/sande570/events{/privacy}","received_events_url":"https://api.github.com/users/sande570/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sande570/Moro-database","description":"","fork":false,"url":"https://api.github.com/repos/sande570/Moro-database","forks_url":"https://api.github.com/repos/sande570/Moro-database/forks","keys_url":"https://api.github.com/repos/sande570/Moro-database/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sande570/Moro-database/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sande570/Moro-database/teams","hooks_url":"https://api.github.com/repos/sande570/Moro-database/hooks","issue_events_url":"https://api.github.com/repos/sande570/Moro-database/issues/events{/number}","events_url":"https://api.github.com/repos/sande570/Moro-database/events","assignees_url":"https://api.github.com/repos/sande570/Moro-database/assignees{/user}","branches_url":"https://api.github.com/repos/sande570/Moro-database/branches{/branch}","tags_url":"https://api.github.com/repos/sande570/Moro-database/tags","blobs_url":"https://api.github.com/repos/sande570/Moro-database/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sande570/Moro-database/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sande570/Moro-database/git/refs{/sha}","trees_url":"https://api.github.com/repos/sande570/Moro-database/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sande570/Moro-database/statuses/{sha}","languages_url":"https://api.github.com/repos/sande570/Moro-database/languages","stargazers_url":"https://api.github.com/repos/sande570/Moro-database/stargazers","contributors_url":"https://api.github.com/repos/sande570/Moro-database/contributors","subscribers_url":"https://api.github.com/repos/sande570/Moro-database/subscribers","subscription_url":"https://api.github.com/repos/sande570/Moro-database/subscription","commits_url":"https://api.github.com/repos/sande570/Moro-database/commits{/sha}","git_commits_url":"https://api.github.com/repos/sande570/Moro-database/git/commits{/sha}","comments_url":"https://api.github.com/repos/sande570/Moro-database/comments{/number}","issue_comment_url":"https://api.github.com/repos/sande570/Moro-database/issues/comments{/number}","contents_url":"https://api.github.com/repos/sande570/Moro-database/contents/{+path}","compare_url":"https://api.github.com/repos/sande570/Moro-database/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sande570/Moro-database/merges","archive_url":"https://api.github.com/repos/sande570/Moro-database/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sande570/Moro-database/downloads","issues_url":"https://api.github.com/repos/sande570/Moro-database/issues{/number}","pulls_url":"https://api.github.com/repos/sande570/Moro-database/pulls{/number}","milestones_url":"https://api.github.com/repos/sande570/Moro-database/milestones{/number}","notifications_url":"https://api.github.com/repos/sande570/Moro-database/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sande570/Moro-database/labels{/name}","releases_url":"https://api.github.com/repos/sande570/Moro-database/releases{/id}","deployments_url":"https://api.github.com/repos/sande570/Moro-database/deployments","created_at":"2015-10-29T19:49:02Z","updated_at":"2016-01-17T00:30:58Z","pushed_at":"2016-02-06T03:25:56Z","git_url":"git://github.com/sande570/Moro-database.git","ssh_url":"git@github.com:sande570/Moro-database.git","clone_url":"https://github.com/sande570/Moro-database.git","svn_url":"https://github.com/sande570/Moro-database","homepage":null,"size":1107,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sande570:master","ref":"master","sha":"c207057d3d1a17a9d87cd76e039bb4cb64ed95cc","user":{"login":"sande570","id":10971280,"avatar_url":"https://avatars.githubusercontent.com/u/10971280?v=3","gravatar_id":"","url":"https://api.github.com/users/sande570","html_url":"https://github.com/sande570","followers_url":"https://api.github.com/users/sande570/followers","following_url":"https://api.github.com/users/sande570/following{/other_user}","gists_url":"https://api.github.com/users/sande570/gists{/gist_id}","starred_url":"https://api.github.com/users/sande570/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sande570/subscriptions","organizations_url":"https://api.github.com/users/sande570/orgs","repos_url":"https://api.github.com/users/sande570/repos","events_url":"https://api.github.com/users/sande570/events{/privacy}","received_events_url":"https://api.github.com/users/sande570/received_events","type":"User","site_admin":false},"repo":{"id":45206728,"name":"Moro-database","full_name":"sande570/Moro-database","owner":{"login":"sande570","id":10971280,"avatar_url":"https://avatars.githubusercontent.com/u/10971280?v=3","gravatar_id":"","url":"https://api.github.com/users/sande570","html_url":"https://github.com/sande570","followers_url":"https://api.github.com/users/sande570/followers","following_url":"https://api.github.com/users/sande570/following{/other_user}","gists_url":"https://api.github.com/users/sande570/gists{/gist_id}","starred_url":"https://api.github.com/users/sande570/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sande570/subscriptions","organizations_url":"https://api.github.com/users/sande570/orgs","repos_url":"https://api.github.com/users/sande570/repos","events_url":"https://api.github.com/users/sande570/events{/privacy}","received_events_url":"https://api.github.com/users/sande570/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sande570/Moro-database","description":"","fork":false,"url":"https://api.github.com/repos/sande570/Moro-database","forks_url":"https://api.github.com/repos/sande570/Moro-database/forks","keys_url":"https://api.github.com/repos/sande570/Moro-database/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sande570/Moro-database/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sande570/Moro-database/teams","hooks_url":"https://api.github.com/repos/sande570/Moro-database/hooks","issue_events_url":"https://api.github.com/repos/sande570/Moro-database/issues/events{/number}","events_url":"https://api.github.com/repos/sande570/Moro-database/events","assignees_url":"https://api.github.com/repos/sande570/Moro-database/assignees{/user}","branches_url":"https://api.github.com/repos/sande570/Moro-database/branches{/branch}","tags_url":"https://api.github.com/repos/sande570/Moro-database/tags","blobs_url":"https://api.github.com/repos/sande570/Moro-database/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sande570/Moro-database/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sande570/Moro-database/git/refs{/sha}","trees_url":"https://api.github.com/repos/sande570/Moro-database/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sande570/Moro-database/statuses/{sha}","languages_url":"https://api.github.com/repos/sande570/Moro-database/languages","stargazers_url":"https://api.github.com/repos/sande570/Moro-database/stargazers","contributors_url":"https://api.github.com/repos/sande570/Moro-database/contributors","subscribers_url":"https://api.github.com/repos/sande570/Moro-database/subscribers","subscription_url":"https://api.github.com/repos/sande570/Moro-database/subscription","commits_url":"https://api.github.com/repos/sande570/Moro-database/commits{/sha}","git_commits_url":"https://api.github.com/repos/sande570/Moro-database/git/commits{/sha}","comments_url":"https://api.github.com/repos/sande570/Moro-database/comments{/number}","issue_comment_url":"https://api.github.com/repos/sande570/Moro-database/issues/comments{/number}","contents_url":"https://api.github.com/repos/sande570/Moro-database/contents/{+path}","compare_url":"https://api.github.com/repos/sande570/Moro-database/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sande570/Moro-database/merges","archive_url":"https://api.github.com/repos/sande570/Moro-database/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sande570/Moro-database/downloads","issues_url":"https://api.github.com/repos/sande570/Moro-database/issues{/number}","pulls_url":"https://api.github.com/repos/sande570/Moro-database/pulls{/number}","milestones_url":"https://api.github.com/repos/sande570/Moro-database/milestones{/number}","notifications_url":"https://api.github.com/repos/sande570/Moro-database/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sande570/Moro-database/labels{/name}","releases_url":"https://api.github.com/repos/sande570/Moro-database/releases{/id}","deployments_url":"https://api.github.com/repos/sande570/Moro-database/deployments","created_at":"2015-10-29T19:49:02Z","updated_at":"2016-01-17T00:30:58Z","pushed_at":"2016-02-06T03:25:56Z","git_url":"git://github.com/sande570/Moro-database.git","ssh_url":"git@github.com:sande570/Moro-database.git","clone_url":"https://github.com/sande570/Moro-database.git","svn_url":"https://github.com/sande570/Moro-database","homepage":null,"size":1107,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sande570/Moro-database/pulls/4"},"html":{"href":"https://github.com/sande570/Moro-database/pull/4"},"issue":{"href":"https://api.github.com/repos/sande570/Moro-database/issues/4"},"comments":{"href":"https://api.github.com/repos/sande570/Moro-database/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/sande570/Moro-database/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/sande570/Moro-database/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sande570/Moro-database/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/sande570/Moro-database/statuses/c44f2f23afc53f2b55590b7a56e245eedbaa45e3"}}}}