I\'m trying to create a function that sorts an array based on a nested object value.
const customers = [ { name: \'John\', displayOrder: [{ route1: