Override the sort filter

This is a try to get rid of #2287. The behavior of nil values is [borrowed from SQL](http://www.postgresql.org/docs/devel/static/queries-order.html). See related discussion in https://github.com/Shopify/liquid/pull/355. Fixes #2239.