metrics from query: include sort order
Merge pull request #62 from ehenneken/ticket_497

metrics from query: include sort order