Ask Media Group Interview Question

how do you sort a given array of objects