add testcase for sort_pairs built-in function

Signed-off-by: Jovi Zhangwei <jovi.zhangwei@gmail.com>