Implement some compare ways.