Remove sort_by! with a variable so that ! is not used