title: how to set order on include aggregate function alias in sequelize?
body: <p>Below is my code</p>
  <pre><code>export async function getMany(page: number, recordsPerPage: number, condition: any = {}, order: any, attributes: string[] = [], other: object = {}) {
      try {
          let { count, rows }: any = await User.findAndCountAll({
              attributes: {
                  include: [[sequelize.literal('(SELECT SUM(reputation) FROM scores where scores.user_id = User.id)'), 'reputation']],
                  exclude: attributes,
              },
              where: condition,
              distinct: true,
              include: [
                  {
                      model: Skill,
                      as: 'skills',
                      attributes: ['skill'],
                      through: { attributes: [] },
                  },
              ],
              order: order,
              offset: page,
              limit: recordsPerPage,
              ...other,
              logging: console.log,
          });
          return { count, rows };
      } catch (e) {
          return false;
      }
  }
  </code></pre>
  <p>I want to set order by reputation field which is alias of sum function column. i want my data in highest to lowest reputation.</p>