{"push_id":809789430,"size":2,"distinct_size":2,"ref":"refs/heads/master","head":"b4f19da1279d9f57870088c882bee83c837054c3","before":"d8bda2c8923c6b3048678016dae49a4fecd963fc","commits":[{"sha":"4100f8d64114cbee279914b80ae15eb9695ce400","author":{"email":"44592b4eea36663c86b994bb0ea99d15309c1c7d@oreilly.com","name":"Marcel M. Cary"},"message":"Fix \"sort\" filter on empty array to return empty array\n\nWhen sorting an empty array with the \"sort\" filter, it returns nil\ninstead of [].  This confuses subsequent filters in the chain that\nexpect an array.  For example, when followed by the \"map\" filter, it\nproduces an array containing one nil element: [nil].\n\nI could special-case the nil return value, but that would be more\ncumbersome than making sure \"sort\" always returns an array.\n\nAdd a case to the \"sort\" method to return [] if the array is empty,\nbefore performing any checks on ary.first that assume a non-empty array.\n\nThere is still a danger of returning nil if the first item in the array\nis nil and it is non-empty, but I'm not sure how better to handle that\ncase.\n\nApply a similar fix to sort_natural, uniq, and compact filters.","distinct":true,"url":"https://api.github.com/repos/Shopify/liquid/commits/4100f8d64114cbee279914b80ae15eb9695ce400"},{"sha":"b4f19da1279d9f57870088c882bee83c837054c3","author":{"email":"ac61e07b8cb7287d697cb5483efb69a223239bb2@gmail.com","name":"Justin Li"},"message":"Merge pull request #652 from mcary/empty-array-sort\n\nMerge pull request 652","distinct":true,"url":"https://api.github.com/repos/Shopify/liquid/commits/b4f19da1279d9f57870088c882bee83c837054c3"}]}