Add sort function on single list.