In my Magento2.4.2, customer dashboard I need to display new order first under order history and recent orders using graphql customer query.
Below is the query I used to fetch all order data of the customer
query {
customer {
orders(
filter:{number:{match:””}},pageSize:20)
{
items {
increment_id
created_at
grand_total
status
}
}
}
}
Could anyone help me to achieve this.