Fixed GPU sorting
Sorting now really happens on the device for GPU threads