Enhances the liquid built-in sort filter to work with Paginate objects.

When invoked on a Paginate object, it efficiently sorts the collection in the database before paginating it.

Objects are sorted in ascending order by default. Use the reverse filter to reverse the sorting order.

The properties by which different objects can be sorted when used in paginations are explicitly documented on each type of object.

Examples:

{% assign countries = website.countries | sort: 'code' %}
{% assign last_orders = user.orders | sort: 'created_at' %}