update stack sort.

Signed-off-by: Junyan Wang <wangjunyan813@pingan.com.cn>