这个是把学校按照university分组之后,再对其中一个集合好的字段进行排序。

所以使用order by关键词来对avg_question_cnt进行排序。

select university, avg(question_cnt) as avg_question_cnt 
from user_profile group by university
order by avg_question_cnt asc;