TEIID-2429 addressing performance issues with large sorts