updated sorted_list and spec
fix the merge conflict