Vulcan Cyber interview question

How would you sort an array of objects