Override the sort filter

This is a try to get rid of #2287. The behavior of nil values is borrowed from SQL. See related discussion in https://github.com/Shopify/liquid/pull/355.