Google Interview Question

Sort array of objects with unique ids