use compareTo instead of hashcode
not working yet...