change sort to sort_by

it's faster and not as much code
oops!  should have removed the block variable
fix style for @miq-bot <3<3
Merge pull request #722 from tenderlove/sort_by

change sort to sort_by