Query code blocks should also show sort and define sort order

A post was merged into an existing topic: Explicit sort parameter in query syntax