fix sort for unite.