Renamed variables in the sort method.