Sort criteria defined in custom queries are not applied when exporting to CSV
How to reproduce:
1. Create a query: name = "order_by_id_asc", sort 1 = "#, ascending"
2. Click the query name "order_by_id_asc" in the side bar of issues list screen. Issues are listed in ascending order of id.
3. Click a "CSV" link on the bottom of the screen
4. Open the CSV file. Ascending order of id is expected, but issues are listed in descending order of id.