{"action":"closed","number":441,"pull_request":{"url":"https://api.github.com/repos/WGBH/AAPB2/pulls/441","id":37174511,"html_url":"https://github.com/WGBH/AAPB2/pull/441","diff_url":"https://github.com/WGBH/AAPB2/pull/441.diff","patch_url":"https://github.com/WGBH/AAPB2/pull/441.patch","issue_url":"https://api.github.com/repos/WGBH/AAPB2/issues/441","number":441,"state":"closed","locked":false,"title":"improved title sort","user":{"login":"mccalluc","id":730388,"avatar_url":"https://avatars.githubusercontent.com/u/730388?v=3","gravatar_id":"","url":"https://api.github.com/users/mccalluc","html_url":"https://github.com/mccalluc","followers_url":"https://api.github.com/users/mccalluc/followers","following_url":"https://api.github.com/users/mccalluc/following{/other_user}","gists_url":"https://api.github.com/users/mccalluc/gists{/gist_id}","starred_url":"https://api.github.com/users/mccalluc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mccalluc/subscriptions","organizations_url":"https://api.github.com/users/mccalluc/orgs","repos_url":"https://api.github.com/users/mccalluc/repos","events_url":"https://api.github.com/users/mccalluc/events{/privacy}","received_events_url":"https://api.github.com/users/mccalluc/received_events","type":"User","site_admin":false},"body":"Fixes #425, I think.\r\n\r\nRemember that title sort is complicated because we're actually sorting by all the titles: On a smaller results list this can lead to some counter-intuitive results. But for the particular problem described in the bug, this works:\r\n\r\n[solr admin](http://localhost:8983/solr/blacklight-core/select?q=*%3A*&sort=title+asc&rows=50&fl=id%2Ctitle&wt=json&indent=true):\r\n...\r\n```json\r\n      {\r\n        \"id\":\"cpb-aacip_155-17crjgpf\",\r\n        \"title\":\"World Cafe -- Larry Kane On John Lennon 2005\"},\r\n      {\r\n        \"id\":\"cpb-aacip_155-859cp21j\",\r\n        \"title\":\"World Cafe -- 1997-01-20 Sat/Mon -- Martin Luther King, Jr. 1997\"},\r\n```","created_at":"2015-06-08T17:02:23Z","updated_at":"2015-06-12T20:18:18Z","closed_at":"2015-06-12T20:18:18Z","merged_at":"2015-06-12T20:18:18Z","merge_commit_sha":"5b9f4fbea85782522dec6487d4bc117d98e79db6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/WGBH/AAPB2/pulls/441/commits","review_comments_url":"https://api.github.com/repos/WGBH/AAPB2/pulls/441/comments","review_comment_url":"https://api.github.com/repos/WGBH/AAPB2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/WGBH/AAPB2/issues/441/comments","statuses_url":"https://api.github.com/repos/WGBH/AAPB2/statuses/9646684af934c79d6cee93dc46742387464203f6","head":{"label":"WGBH:better-title-sort-425","ref":"better-title-sort-425","sha":"9646684af934c79d6cee93dc46742387464203f6","user":{"login":"WGBH","id":301102,"avatar_url":"https://avatars.githubusercontent.com/u/301102?v=3","gravatar_id":"","url":"https://api.github.com/users/WGBH","html_url":"https://github.com/WGBH","followers_url":"https://api.github.com/users/WGBH/followers","following_url":"https://api.github.com/users/WGBH/following{/other_user}","gists_url":"https://api.github.com/users/WGBH/gists{/gist_id}","starred_url":"https://api.github.com/users/WGBH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGBH/subscriptions","organizations_url":"https://api.github.com/users/WGBH/orgs","repos_url":"https://api.github.com/users/WGBH/repos","events_url":"https://api.github.com/users/WGBH/events{/privacy}","received_events_url":"https://api.github.com/users/WGBH/received_events","type":"Organization","site_admin":false},"repo":{"id":26285120,"name":"AAPB2","full_name":"WGBH/AAPB2","owner":{"login":"WGBH","id":301102,"avatar_url":"https://avatars.githubusercontent.com/u/301102?v=3","gravatar_id":"","url":"https://api.github.com/users/WGBH","html_url":"https://github.com/WGBH","followers_url":"https://api.github.com/users/WGBH/followers","following_url":"https://api.github.com/users/WGBH/following{/other_user}","gists_url":"https://api.github.com/users/WGBH/gists{/gist_id}","starred_url":"https://api.github.com/users/WGBH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGBH/subscriptions","organizations_url":"https://api.github.com/users/WGBH/orgs","repos_url":"https://api.github.com/users/WGBH/repos","events_url":"https://api.github.com/users/WGBH/events{/privacy}","received_events_url":"https://api.github.com/users/WGBH/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WGBH/AAPB2","description":"American Archive of Public Broadcasting","fork":false,"url":"https://api.github.com/repos/WGBH/AAPB2","forks_url":"https://api.github.com/repos/WGBH/AAPB2/forks","keys_url":"https://api.github.com/repos/WGBH/AAPB2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WGBH/AAPB2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WGBH/AAPB2/teams","hooks_url":"https://api.github.com/repos/WGBH/AAPB2/hooks","issue_events_url":"https://api.github.com/repos/WGBH/AAPB2/issues/events{/number}","events_url":"https://api.github.com/repos/WGBH/AAPB2/events","assignees_url":"https://api.github.com/repos/WGBH/AAPB2/assignees{/user}","branches_url":"https://api.github.com/repos/WGBH/AAPB2/branches{/branch}","tags_url":"https://api.github.com/repos/WGBH/AAPB2/tags","blobs_url":"https://api.github.com/repos/WGBH/AAPB2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WGBH/AAPB2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WGBH/AAPB2/git/refs{/sha}","trees_url":"https://api.github.com/repos/WGBH/AAPB2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WGBH/AAPB2/statuses/{sha}","languages_url":"https://api.github.com/repos/WGBH/AAPB2/languages","stargazers_url":"https://api.github.com/repos/WGBH/AAPB2/stargazers","contributors_url":"https://api.github.com/repos/WGBH/AAPB2/contributors","subscribers_url":"https://api.github.com/repos/WGBH/AAPB2/subscribers","subscription_url":"https://api.github.com/repos/WGBH/AAPB2/subscription","commits_url":"https://api.github.com/repos/WGBH/AAPB2/commits{/sha}","git_commits_url":"https://api.github.com/repos/WGBH/AAPB2/git/commits{/sha}","comments_url":"https://api.github.com/repos/WGBH/AAPB2/comments{/number}","issue_comment_url":"https://api.github.com/repos/WGBH/AAPB2/issues/comments{/number}","contents_url":"https://api.github.com/repos/WGBH/AAPB2/contents/{+path}","compare_url":"https://api.github.com/repos/WGBH/AAPB2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WGBH/AAPB2/merges","archive_url":"https://api.github.com/repos/WGBH/AAPB2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WGBH/AAPB2/downloads","issues_url":"https://api.github.com/repos/WGBH/AAPB2/issues{/number}","pulls_url":"https://api.github.com/repos/WGBH/AAPB2/pulls{/number}","milestones_url":"https://api.github.com/repos/WGBH/AAPB2/milestones{/number}","notifications_url":"https://api.github.com/repos/WGBH/AAPB2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WGBH/AAPB2/labels{/name}","releases_url":"https://api.github.com/repos/WGBH/AAPB2/releases{/id}","created_at":"2014-11-06T19:06:12Z","updated_at":"2015-05-08T15:11:08Z","pushed_at":"2015-06-12T20:18:18Z","git_url":"git://github.com/WGBH/AAPB2.git","ssh_url":"git@github.com:WGBH/AAPB2.git","clone_url":"https://github.com/WGBH/AAPB2.git","svn_url":"https://github.com/WGBH/AAPB2","homepage":null,"size":81176,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":53,"forks":0,"open_issues":53,"watchers":4,"default_branch":"master"}},"base":{"label":"WGBH:master","ref":"master","sha":"a809d07495ae10beaa2548a563b0f59e9d949903","user":{"login":"WGBH","id":301102,"avatar_url":"https://avatars.githubusercontent.com/u/301102?v=3","gravatar_id":"","url":"https://api.github.com/users/WGBH","html_url":"https://github.com/WGBH","followers_url":"https://api.github.com/users/WGBH/followers","following_url":"https://api.github.com/users/WGBH/following{/other_user}","gists_url":"https://api.github.com/users/WGBH/gists{/gist_id}","starred_url":"https://api.github.com/users/WGBH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGBH/subscriptions","organizations_url":"https://api.github.com/users/WGBH/orgs","repos_url":"https://api.github.com/users/WGBH/repos","events_url":"https://api.github.com/users/WGBH/events{/privacy}","received_events_url":"https://api.github.com/users/WGBH/received_events","type":"Organization","site_admin":false},"repo":{"id":26285120,"name":"AAPB2","full_name":"WGBH/AAPB2","owner":{"login":"WGBH","id":301102,"avatar_url":"https://avatars.githubusercontent.com/u/301102?v=3","gravatar_id":"","url":"https://api.github.com/users/WGBH","html_url":"https://github.com/WGBH","followers_url":"https://api.github.com/users/WGBH/followers","following_url":"https://api.github.com/users/WGBH/following{/other_user}","gists_url":"https://api.github.com/users/WGBH/gists{/gist_id}","starred_url":"https://api.github.com/users/WGBH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WGBH/subscriptions","organizations_url":"https://api.github.com/users/WGBH/orgs","repos_url":"https://api.github.com/users/WGBH/repos","events_url":"https://api.github.com/users/WGBH/events{/privacy}","received_events_url":"https://api.github.com/users/WGBH/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/WGBH/AAPB2","description":"American Archive of Public Broadcasting","fork":false,"url":"https://api.github.com/repos/WGBH/AAPB2","forks_url":"https://api.github.com/repos/WGBH/AAPB2/forks","keys_url":"https://api.github.com/repos/WGBH/AAPB2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/WGBH/AAPB2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/WGBH/AAPB2/teams","hooks_url":"https://api.github.com/repos/WGBH/AAPB2/hooks","issue_events_url":"https://api.github.com/repos/WGBH/AAPB2/issues/events{/number}","events_url":"https://api.github.com/repos/WGBH/AAPB2/events","assignees_url":"https://api.github.com/repos/WGBH/AAPB2/assignees{/user}","branches_url":"https://api.github.com/repos/WGBH/AAPB2/branches{/branch}","tags_url":"https://api.github.com/repos/WGBH/AAPB2/tags","blobs_url":"https://api.github.com/repos/WGBH/AAPB2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/WGBH/AAPB2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/WGBH/AAPB2/git/refs{/sha}","trees_url":"https://api.github.com/repos/WGBH/AAPB2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/WGBH/AAPB2/statuses/{sha}","languages_url":"https://api.github.com/repos/WGBH/AAPB2/languages","stargazers_url":"https://api.github.com/repos/WGBH/AAPB2/stargazers","contributors_url":"https://api.github.com/repos/WGBH/AAPB2/contributors","subscribers_url":"https://api.github.com/repos/WGBH/AAPB2/subscribers","subscription_url":"https://api.github.com/repos/WGBH/AAPB2/subscription","commits_url":"https://api.github.com/repos/WGBH/AAPB2/commits{/sha}","git_commits_url":"https://api.github.com/repos/WGBH/AAPB2/git/commits{/sha}","comments_url":"https://api.github.com/repos/WGBH/AAPB2/comments{/number}","issue_comment_url":"https://api.github.com/repos/WGBH/AAPB2/issues/comments{/number}","contents_url":"https://api.github.com/repos/WGBH/AAPB2/contents/{+path}","compare_url":"https://api.github.com/repos/WGBH/AAPB2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/WGBH/AAPB2/merges","archive_url":"https://api.github.com/repos/WGBH/AAPB2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/WGBH/AAPB2/downloads","issues_url":"https://api.github.com/repos/WGBH/AAPB2/issues{/number}","pulls_url":"https://api.github.com/repos/WGBH/AAPB2/pulls{/number}","milestones_url":"https://api.github.com/repos/WGBH/AAPB2/milestones{/number}","notifications_url":"https://api.github.com/repos/WGBH/AAPB2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/WGBH/AAPB2/labels{/name}","releases_url":"https://api.github.com/repos/WGBH/AAPB2/releases{/id}","created_at":"2014-11-06T19:06:12Z","updated_at":"2015-05-08T15:11:08Z","pushed_at":"2015-06-12T20:18:18Z","git_url":"git://github.com/WGBH/AAPB2.git","ssh_url":"git@github.com:WGBH/AAPB2.git","clone_url":"https://github.com/WGBH/AAPB2.git","svn_url":"https://github.com/WGBH/AAPB2","homepage":null,"size":81176,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":53,"forks":0,"open_issues":53,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/WGBH/AAPB2/pulls/441"},"html":{"href":"https://github.com/WGBH/AAPB2/pull/441"},"issue":{"href":"https://api.github.com/repos/WGBH/AAPB2/issues/441"},"comments":{"href":"https://api.github.com/repos/WGBH/AAPB2/issues/441/comments"},"review_comments":{"href":"https://api.github.com/repos/WGBH/AAPB2/pulls/441/comments"},"review_comment":{"href":"https://api.github.com/repos/WGBH/AAPB2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/WGBH/AAPB2/pulls/441/commits"},"statuses":{"href":"https://api.github.com/repos/WGBH/AAPB2/statuses/9646684af934c79d6cee93dc46742387464203f6"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"afred","id":1507490,"avatar_url":"https://avatars.githubusercontent.com/u/1507490?v=3","gravatar_id":"","url":"https://api.github.com/users/afred","html_url":"https://github.com/afred","followers_url":"https://api.github.com/users/afred/followers","following_url":"https://api.github.com/users/afred/following{/other_user}","gists_url":"https://api.github.com/users/afred/gists{/gist_id}","starred_url":"https://api.github.com/users/afred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afred/subscriptions","organizations_url":"https://api.github.com/users/afred/orgs","repos_url":"https://api.github.com/users/afred/repos","events_url":"https://api.github.com/users/afred/events{/privacy}","received_events_url":"https://api.github.com/users/afred/received_events","type":"User","site_admin":false},"comments":3,"review_comments":4,"commits":8,"additions":71,"deletions":22,"changed_files":15}}