Introduced check before sorting to ensure core_collator class exists as it was only introduced in 2.6