treeset uses compareTo instead of equals