and sequelize query code example
Example 1: sequelize order by
order: [["createdAt", "DESC"]]
Example 2: sequelize .all()
yourTableModel.findAll({
//optional filters
where: {},
raw: true,
})
order: [["createdAt", "DESC"]]
yourTableModel.findAll({
//optional filters
where: {},
raw: true,
})