Added ordering of collected references by original_hash and clone_hash.