Any CUDA code examples of computing the ranks of elements of an array?

I am curious to know if there are CUDA code examples for computing the ranks of elements in an array. Thanks a lot!