結果 : sql sort by aggregate function