Test sort_by_key with thrust::seq in __device__ code.