Complete the code to sort users by their name in ascending order.
query { users(orderBy: [1]) { id name } }The orderBy argument uses name_ASC to sort users by name in ascending order.
Complete the code to sort products by price in descending order.
query { products(orderBy: [1]) { id price } }Using price_DESC sorts products by price from highest to lowest.
Fix the error in the sorting argument to sort posts by creation date ascending.
query { posts(orderBy: [1]) { id createdAt } }The correct sorting argument is createdAt_ASC to sort by creation date ascending.
Fill both blanks to sort comments by author name ascending and then by date descending.
query { comments(orderBy: [[1], [2]]) { id author date } }The first sort is by author_ASC (author name ascending), then by date_DESC (date descending).
Fill all three blanks to sort orders by status descending, then by total ascending, and finally by date descending.
query { orders(orderBy: [[1], [2], [3]]) { id status total date } }The orders are sorted first by status_DESC, then total_ASC, and finally date_DESC.