node js sequelize order by code example
Example 1: sequelize order by
order: [["createdAt", "DESC"]]
Example 2: sequelize order by
Users.findAll({ order: [['updatedAt', 'DESC']]});
order: [["createdAt", "DESC"]]
Users.findAll({ order: [['updatedAt', 'DESC']]});