79696424

Date: 2025-07-10 02:35:11
Score: 1.5
Natty:
Report link

When using Sequelize's order option, instead of wrapping your column name in literal, you should use Sequelize.col to reference a column properly.

Here's how you can do it:

const queryDict = {
    ...
    order: [[Sequelize.col('control.number'), 'ASC']]
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Enrique Roldán