{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/liquid/issues/652","labels_url":"https://api.github.com/repos/Shopify/liquid/issues/652/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/liquid/issues/652/comments","events_url":"https://api.github.com/repos/Shopify/liquid/issues/652/events","html_url":"https://github.com/Shopify/liquid/pull/652","id":108420811,"number":652,"title":"Fix \"sort\" filter on empty array to return empty array","user":{"login":"mcary","id":24826,"avatar_url":"https://avatars.githubusercontent.com/u/24826?v=3","gravatar_id":"","url":"https://api.github.com/users/mcary","html_url":"https://github.com/mcary","followers_url":"https://api.github.com/users/mcary/followers","following_url":"https://api.github.com/users/mcary/following{/other_user}","gists_url":"https://api.github.com/users/mcary/gists{/gist_id}","starred_url":"https://api.github.com/users/mcary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcary/subscriptions","organizations_url":"https://api.github.com/users/mcary/orgs","repos_url":"https://api.github.com/users/mcary/repos","events_url":"https://api.github.com/users/mcary/events{/privacy}","received_events_url":"https://api.github.com/users/mcary/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-25T22:59:22Z","updated_at":"2015-09-25T23:48:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Shopify/liquid/pulls/652","html_url":"https://github.com/Shopify/liquid/pull/652","diff_url":"https://github.com/Shopify/liquid/pull/652.diff","patch_url":"https://github.com/Shopify/liquid/pull/652.patch"},"body":"Can we adjust the \"sort\" filter to return empty array?  This would allow it to be chained with other array-like filters.  Currently calling \"sort\" followed by \"map\" results in an array containing one nil, which seems very broken.\r\n\r\nI've added a test and verified that the test fails without this fix (and passes with it)."},"comment":{"url":"https://api.github.com/repos/Shopify/liquid/issues/comments/143378531","html_url":"https://github.com/Shopify/liquid/pull/652#issuecomment-143378531","issue_url":"https://api.github.com/repos/Shopify/liquid/issues/652","id":143378531,"user":{"login":"dylanahsmith","id":954402,"avatar_url":"https://avatars.githubusercontent.com/u/954402?v=3","gravatar_id":"","url":"https://api.github.com/users/dylanahsmith","html_url":"https://github.com/dylanahsmith","followers_url":"https://api.github.com/users/dylanahsmith/followers","following_url":"https://api.github.com/users/dylanahsmith/following{/other_user}","gists_url":"https://api.github.com/users/dylanahsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/dylanahsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dylanahsmith/subscriptions","organizations_url":"https://api.github.com/users/dylanahsmith/orgs","repos_url":"https://api.github.com/users/dylanahsmith/repos","events_url":"https://api.github.com/users/dylanahsmith/events{/privacy}","received_events_url":"https://api.github.com/users/dylanahsmith/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T23:48:59Z","updated_at":"2015-09-25T23:48:59Z","body":"Please rebase on master to fix the test failures."}}