Sorry that should have read: "If a is not less then c you haven't written the comparison method correctly"

Either way I've changed it and it now works as expected. Will create the patch straight away. 

Many thanks,
J