fixed the issue with the custom object sorting