pNre/ExSwift — pull request #12 by ColinEberhardt (2014-06-24 09:06:38+00:00)
Title: Added a sortBy method

This is a great set of utility methods. Nice work.

This PR is for a very small addition, `sortBy`. really dislike the way that the Swift `Array.sort` mutates the array itself. This `sortBy` implementation copies and sorts and as a result supports a more fluent usage:

array.sort({$0 > $1}).unique()