api-parser: add sorting support at req.query['sorts']