This problem is in Contest(s) below:
Contest 1141:基础班-排序
Contest 1180:基础课程-函数排序结构体