Fixes for the __compare_objects() method.
Authored by: bugman 2009-01-13
Parent: [r8431]
Child: [r8433]