'uniqueness' sorting