[Bugfix beta] fix Comparable.compare [fixes #5299 #5060]