sort using sort_by not sort_by! for 1.8.7 compat