merging
reviewed sort function and uniqueness of function databinding