add function: check

check uniq and sort