sort_by! is not supported on ruby 1.8