sort function done
merge