Corrected compare method to obey Order contract to return only -1, 0 and 1.