fixes to GPU sorts