Shopify/liquid — pull request #101 by KeeperPat (2012-02-24 20:30:55+00:00)
Title: Support sorting the collection in a for loop tag.

You can specify ascending or descending by doing order:ascending or order:descending. You can specify what attribute you want to search on by using the sort_by attribute. So "{% for item in collection sort_by:name order:descending %}" will iterate through the collection sorted by name in descending order.