Added flag to disable sorting of record sets