add order feature to query api