Conversion/elimination of sort functions.