CrowdStrike interview question

How to sort an object in Java