Issue with Nested Sorting in Opensearch Query

I found the issue: my delivery object included both products and nested delivery objects. Therefore, while sorting, I need to specify both levels of nesting to sort based on products.delivery.date.