Ocado Technology Interview Question

Combine and sort an array of objects