Use stable_sort in lod_rank_table (#5378)
Use stable_sort in lod_rank_table (#5378)

It is easy to debug and test when use `stable_sort`and the time
complexity is not changed.
jacquesqiao/Paddle,baidu/Paddle,reyoung/Paddle,chengduoZH/Paddle,pkuyym/Paddle,tensor-tang/Paddle,Canpio/Paddle,putcn/Paddle,luotao1/Paddle,pkuyym/Paddle,Canpio/Paddle,pkuyym/Paddle,luotao1/Paddle,Canpio/Paddle,pkuyym/Paddle,reyoung/Paddle,baidu/Paddle,PaddlePaddle/Paddle,putcn/Paddle,tensor-tang/Paddle,PaddlePaddle/Paddle,tensor-tang/Paddle,Canpio/Paddle,PaddlePaddle/Paddle,jacquesqiao/Paddle,jacquesqiao/Paddle,luotao1/Paddle,pkuyym/Paddle,luotao1/Paddle,putcn/Paddle,reyoung/Paddle,PaddlePaddle/Paddle,QiJune/Paddle,QiJune/Paddle,tensor-tang/Paddle,chengduoZH/Paddle,PaddlePaddle/Paddle,chengduoZH/Paddle,tensor-tang/Paddle,putcn/Paddle,Canpio/Paddle,PaddlePaddle/Paddle,chengduoZH/Paddle,QiJune/Paddle,baidu/Paddle,putcn/Paddle,QiJune/Paddle,putcn/Paddle,QiJune/Paddle,reyoung/Paddle,lcy-seso/Paddle,lcy-seso/Paddle,lcy-seso/Paddle,Canpio/Paddle,Canpio/Paddle,luotao1/Paddle,jacquesqiao/Paddle,baidu/Paddle,pkuyym/Paddle,PaddlePaddle/Paddle,luotao1/Paddle,jacquesqiao/Paddle,jacquesqiao/Paddle,QiJune/Paddle,baidu/Paddle,reyoung/Paddle,chengduoZH/Paddle,Canpio/Paddle,lcy-seso/Paddle,lcy-seso/Paddle,luotao1/Paddle,lcy-seso/Paddle,reyoung/Paddle