livingsocial/rake-pipeline — pull request #102 by twinturbo (2012-10-19 15:07:23+00:00)
Title: Add a sorting helper

Match implies name order as described #100. This PR adds a sort helper so you can express whatever you want before inputs hits filters. The sort method only takes a block to pass to `Array#sort`.

Here is an example:

```ruby
input "app/assets" do
match "*.js" do
# inputs will be sorted according to the block and
# passed to concat
sort do |f1, f2|
# reverse the inputs
f2.fullpath <=> f1.fullpath
end
concat "application.js"
end
end
```