{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/activity-streams/pulls/comments/55428270","id":55428270,"diff_hunk":"@@ -117,5 +111,24 @@ describe(\"selectors\", () => {\n       const groups = [state.TopSites.rows, state.Spotlight.rows, state.TopActivity.rows];\n       assert.deepEqual(groups, dedupe.group(groups));\n     });\n+    it(\"should sort TopActivity by dateLastVisited\", () => {\n+      state = selectNewTabSites({\n+        TopSites: {rows: []},\n+        Spotlight: {rows: []},\n+        FrecentHistory: {rows: [\n+          {url: \"foo.com\", lastVisitDate: 1},\n+          {url: \"bar.com\", lastVisitDate: 4},\n+          {url: \"baz.com\", lastVisitDate: 3}\n+        ]}\n+      });\n+      console.log(state.TopActivity.rows);","path":"content-test/selectors/selectors.test.js","position":58,"original_position":58,"commit_id":"5b012e058c57408f7c7ae7b4d4d913c8f40d56be","original_commit_id":"5b012e058c57408f7c7ae7b4d4d913c8f40d56be","user":{"login":"k88hudson","id":1455535,"avatar_url":"https://avatars.githubusercontent.com/u/1455535?v=3","gravatar_id":"","url":"https://api.github.com/users/k88hudson","html_url":"https://github.com/k88hudson","followers_url":"https://api.github.com/users/k88hudson/followers","following_url":"https://api.github.com/users/k88hudson/following{/other_user}","gists_url":"https://api.github.com/users/k88hudson/gists{/gist_id}","starred_url":"https://api.github.com/users/k88hudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k88hudson/subscriptions","organizations_url":"https://api.github.com/users/k88hudson/orgs","repos_url":"https://api.github.com/users/k88hudson/repos","events_url":"https://api.github.com/users/k88hudson/events{/privacy}","received_events_url":"https://api.github.com/users/k88hudson/received_events","type":"User","site_admin":false},"body":"oops!","created_at":"2016-03-08T21:12:43Z","updated_at":"2016-03-08T21:12:43Z","html_url":"https://github.com/mozilla/activity-streams/pull/279#discussion_r55428270","pull_request_url":"https://api.github.com/repos/mozilla/activity-streams/pulls/279","_links":{"self":{"href":"https://api.github.com/repos/mozilla/activity-streams/pulls/comments/55428270"},"html":{"href":"https://github.com/mozilla/activity-streams/pull/279#discussion_r55428270"},"pull_request":{"href":"https://api.github.com/repos/mozilla/activity-streams/pulls/279"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/activity-streams/pulls/279","id":62135542,"html_url":"https://github.com/mozilla/activity-streams/pull/279","diff_url":"https://github.com/mozilla/activity-streams/pull/279.diff","patch_url":"https://github.com/mozilla/activity-streams/pull/279.patch","issue_url":"https://api.github.com/repos/mozilla/activity-streams/issues/279","number":279,"state":"open","locked":false,"title":"Update new tab page to use FrecentHistory","user":{"login":"k88hudson","id":1455535,"avatar_url":"https://avatars.githubusercontent.com/u/1455535?v=3","gravatar_id":"","url":"https://api.github.com/users/k88hudson","html_url":"https://github.com/k88hudson","followers_url":"https://api.github.com/users/k88hudson/followers","following_url":"https://api.github.com/users/k88hudson/following{/other_user}","gists_url":"https://api.github.com/users/k88hudson/gists{/gist_id}","starred_url":"https://api.github.com/users/k88hudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k88hudson/subscriptions","organizations_url":"https://api.github.com/users/k88hudson/orgs","repos_url":"https://api.github.com/users/k88hudson/repos","events_url":"https://api.github.com/users/k88hudson/events{/privacy}","received_events_url":"https://api.github.com/users/k88hudson/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-08T21:01:31Z","updated_at":"2016-03-08T21:12:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b35f1ad0535d2fc904c7078f07f4e1155e296d33","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/activity-streams/pulls/279/commits","review_comments_url":"https://api.github.com/repos/mozilla/activity-streams/pulls/279/comments","review_comment_url":"https://api.github.com/repos/mozilla/activity-streams/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/activity-streams/issues/279/comments","statuses_url":"https://api.github.com/repos/mozilla/activity-streams/statuses/5b012e058c57408f7c7ae7b4d4d913c8f40d56be","head":{"label":"k88hudson:gh158","ref":"gh158","sha":"5b012e058c57408f7c7ae7b4d4d913c8f40d56be","user":{"login":"k88hudson","id":1455535,"avatar_url":"https://avatars.githubusercontent.com/u/1455535?v=3","gravatar_id":"","url":"https://api.github.com/users/k88hudson","html_url":"https://github.com/k88hudson","followers_url":"https://api.github.com/users/k88hudson/followers","following_url":"https://api.github.com/users/k88hudson/following{/other_user}","gists_url":"https://api.github.com/users/k88hudson/gists{/gist_id}","starred_url":"https://api.github.com/users/k88hudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k88hudson/subscriptions","organizations_url":"https://api.github.com/users/k88hudson/orgs","repos_url":"https://api.github.com/users/k88hudson/repos","events_url":"https://api.github.com/users/k88hudson/events{/privacy}","received_events_url":"https://api.github.com/users/k88hudson/received_events","type":"User","site_admin":false},"repo":{"id":52153556,"name":"activity-streams","full_name":"k88hudson/activity-streams","owner":{"login":"k88hudson","id":1455535,"avatar_url":"https://avatars.githubusercontent.com/u/1455535?v=3","gravatar_id":"","url":"https://api.github.com/users/k88hudson","html_url":"https://github.com/k88hudson","followers_url":"https://api.github.com/users/k88hudson/followers","following_url":"https://api.github.com/users/k88hudson/following{/other_user}","gists_url":"https://api.github.com/users/k88hudson/gists{/gist_id}","starred_url":"https://api.github.com/users/k88hudson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k88hudson/subscriptions","organizations_url":"https://api.github.com/users/k88hudson/orgs","repos_url":"https://api.github.com/users/k88hudson/repos","events_url":"https://api.github.com/users/k88hudson/events{/privacy}","received_events_url":"https://api.github.com/users/k88hudson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/k88hudson/activity-streams","description":" MVP prototype add-on for activity streams","fork":true,"url":"https://api.github.com/repos/k88hudson/activity-streams","forks_url":"https://api.github.com/repos/k88hudson/activity-streams/forks","keys_url":"https://api.github.com/repos/k88hudson/activity-streams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/k88hudson/activity-streams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/k88hudson/activity-streams/teams","hooks_url":"https://api.github.com/repos/k88hudson/activity-streams/hooks","issue_events_url":"https://api.github.com/repos/k88hudson/activity-streams/issues/events{/number}","events_url":"https://api.github.com/repos/k88hudson/activity-streams/events","assignees_url":"https://api.github.com/repos/k88hudson/activity-streams/assignees{/user}","branches_url":"https://api.github.com/repos/k88hudson/activity-streams/branches{/branch}","tags_url":"https://api.github.com/repos/k88hudson/activity-streams/tags","blobs_url":"https://api.github.com/repos/k88hudson/activity-streams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/k88hudson/activity-streams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/k88hudson/activity-streams/git/refs{/sha}","trees_url":"https://api.github.com/repos/k88hudson/activity-streams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/k88hudson/activity-streams/statuses/{sha}","languages_url":"https://api.github.com/repos/k88hudson/activity-streams/languages","stargazers_url":"https://api.github.com/repos/k88hudson/activity-streams/stargazers","contributors_url":"https://api.github.com/repos/k88hudson/activity-streams/contributors","subscribers_url":"https://api.github.com/repos/k88hudson/activity-streams/subscribers","subscription_url":"https://api.github.com/repos/k88hudson/activity-streams/subscription","commits_url":"https://api.github.com/repos/k88hudson/activity-streams/commits{/sha}","git_commits_url":"https://api.github.com/repos/k88hudson/activity-streams/git/commits{/sha}","comments_url":"https://api.github.com/repos/k88hudson/activity-streams/comments{/number}","issue_comment_url":"https://api.github.com/repos/k88hudson/activity-streams/issues/comments{/number}","contents_url":"https://api.github.com/repos/k88hudson/activity-streams/contents/{+path}","compare_url":"https://api.github.com/repos/k88hudson/activity-streams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/k88hudson/activity-streams/merges","archive_url":"https://api.github.com/repos/k88hudson/activity-streams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/k88hudson/activity-streams/downloads","issues_url":"https://api.github.com/repos/k88hudson/activity-streams/issues{/number}","pulls_url":"https://api.github.com/repos/k88hudson/activity-streams/pulls{/number}","milestones_url":"https://api.github.com/repos/k88hudson/activity-streams/milestones{/number}","notifications_url":"https://api.github.com/repos/k88hudson/activity-streams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/k88hudson/activity-streams/labels{/name}","releases_url":"https://api.github.com/repos/k88hudson/activity-streams/releases{/id}","deployments_url":"https://api.github.com/repos/k88hudson/activity-streams/deployments","created_at":"2016-02-20T13:02:48Z","updated_at":"2016-02-20T13:02:49Z","pushed_at":"2016-03-08T21:01:16Z","git_url":"git://github.com/k88hudson/activity-streams.git","ssh_url":"git@github.com:k88hudson/activity-streams.git","clone_url":"https://github.com/k88hudson/activity-streams.git","svn_url":"https://github.com/k88hudson/activity-streams","homepage":"","size":384,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"5f6bfdeabe607e8b538ef3d5268691e1ed826692","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":50695589,"name":"activity-streams","full_name":"mozilla/activity-streams","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/activity-streams","description":" MVP prototype add-on for activity streams","fork":false,"url":"https://api.github.com/repos/mozilla/activity-streams","forks_url":"https://api.github.com/repos/mozilla/activity-streams/forks","keys_url":"https://api.github.com/repos/mozilla/activity-streams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/activity-streams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/activity-streams/teams","hooks_url":"https://api.github.com/repos/mozilla/activity-streams/hooks","issue_events_url":"https://api.github.com/repos/mozilla/activity-streams/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/activity-streams/events","assignees_url":"https://api.github.com/repos/mozilla/activity-streams/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/activity-streams/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/activity-streams/tags","blobs_url":"https://api.github.com/repos/mozilla/activity-streams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/activity-streams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/activity-streams/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/activity-streams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/activity-streams/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/activity-streams/languages","stargazers_url":"https://api.github.com/repos/mozilla/activity-streams/stargazers","contributors_url":"https://api.github.com/repos/mozilla/activity-streams/contributors","subscribers_url":"https://api.github.com/repos/mozilla/activity-streams/subscribers","subscription_url":"https://api.github.com/repos/mozilla/activity-streams/subscription","commits_url":"https://api.github.com/repos/mozilla/activity-streams/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/activity-streams/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/activity-streams/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/activity-streams/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/activity-streams/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/activity-streams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/activity-streams/merges","archive_url":"https://api.github.com/repos/mozilla/activity-streams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/activity-streams/downloads","issues_url":"https://api.github.com/repos/mozilla/activity-streams/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/activity-streams/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/activity-streams/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/activity-streams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/activity-streams/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/activity-streams/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/activity-streams/deployments","created_at":"2016-01-29T22:28:26Z","updated_at":"2016-02-26T13:34:22Z","pushed_at":"2016-03-08T21:01:32Z","git_url":"git://github.com/mozilla/activity-streams.git","ssh_url":"git@github.com:mozilla/activity-streams.git","clone_url":"https://github.com/mozilla/activity-streams.git","svn_url":"https://github.com/mozilla/activity-streams","homepage":"","size":421,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":73,"forks":4,"open_issues":73,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/activity-streams/pulls/279"},"html":{"href":"https://github.com/mozilla/activity-streams/pull/279"},"issue":{"href":"https://api.github.com/repos/mozilla/activity-streams/issues/279"},"comments":{"href":"https://api.github.com/repos/mozilla/activity-streams/issues/279/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/activity-streams/pulls/279/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/activity-streams/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/activity-streams/pulls/279/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/activity-streams/statuses/5b012e058c57408f7c7ae7b4d4d913c8f40d56be"}}}}