title: How to use sum and order by in SQLAlchemy query
body: <p>I'm trying to return a sum row from my table and order with the sum result.</p>
  
  <p>My sql like this:</p>
  
  <pre><code>self.db_user_online.query(
      MeleeGameData,
      func.sum(MeleeGameData.core_data).label("ct")
  ).\
      group_by(MeleeGameData.ccid).\
      filter_by(mid=self.cycle_id).\
      order_by("ct desc").\
      all()
  </code></pre>
  
  <p>Debug echo sql:</p>
  
  <pre><code>SELECT fiels..., sum(t_act_melee_game_data.core_data) AS ct
  FROM t_act_melee_game_data
  WHERE t_act_melee_game_data.mid = %s
  GROUP BY t_act_melee_game_data.ccid
  ORDER BY ct DESC
  </code></pre>
  
  <p>But it's can't work..</p>