Ocado Technology interview question

Given an array of objects to sort