Vulcan Cyber Interview Question

How would you sort an array of objects