diff --git a/src/libs/middlewares/reqQueryFields.js b/src/libs/middlewares/reqQueryFields.js index dfa3a12ce40c1bb1a4024d982d8a8fbdf70d6049..8dcf018b0cd7285312dca6e2f257aa8b03375f5b 100644 --- a/src/libs/middlewares/reqQueryFields.js +++ b/src/libs/middlewares/reqQueryFields.js @@ -244,6 +244,7 @@ class ReqQueryFields { }) }else{ req.sql.field(value.table+'.'+value.tableField, value.resultField || value.tableField) + .order(value.table+'.'+value.tableField) .group(value.table+'.'+value.tableField); } }