Deliveroo interview question

First Attempt, Parse the JSON and sort the data according to a key in JSON.