Improved result with different object instance.

Cause of Polymorphisme, the compareTo methode witch is call is the methode of type of the instance witch take parameter with the same type of the instance, so if first is an Integer and second is a Double the is an CastClass Exception