use sort_by instead of sort
Merge pull request #774 from zendesk/grosser/sort_by

Prefer the more concise `#sort_by` over long-hand `#sort`