Ocado Technology interview question

Combine and sort an array of objects