Sorting input to reduce tail effects in GPU blocks