Ask Media Group interview question

how do you sort a given array of objects