That technique is called "destructive sort" :-P
In reply to Re^2: sort based upon the partial data by shmem in thread sort based upon the partial data by sathiya.sw