selectSql ordered

This commit is contained in:
llopis15 2021-03-16 13:36:34 +01:00
parent 8ae770c8cc
commit 77bcc90325
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,8 @@ function select(collectionFk, callback){
FROM ticketCollection tc
JOIN ticket t ON t.id = tc.ticketFk JOIN client c ON t.clientFk = c.id
JOIN agencyMode am ON am.id = t.agencyModeFk
WHERE tc.collectionFk = ${collectionFk}`;
WHERE tc.collectionFk = ${collectionFk}
ORDER BY tc.wagon, tc.level`;
con.con.query(consSql, function (err, result, fields) {
console.log(result);