sort: post order for queries