Can customise compare function.