I am trying to fetch the CPQ bundle products and show it in the PDF in SOQL. But the Order products aren't getting fetched in the same Order as they are shown in the Order detail page. They are getting displayed randomly.
I tried to group them by the Product family field, but I am getting Duplicate Alias:Name error.
Can someone please let me know how to fetch the Order products in SOQL in the same Order as they are displayed in the Order Product page. Thanks in advance.