Concept Flow - Query result ordering (ascending, descending)
Start Query
Specify Partition Key
Set ScanIndexForward
Ascending
Fetch Items in Order
Return Results
The query starts by specifying the partition key, then sets the ScanIndexForward flag to true for ascending or false for descending order, fetches items accordingly, and returns the results.