有如下这样一组学生成绩的数据,需要把 7 年级的优秀学生(所有科目成绩大于等于 80 分)找出来,按数学成绩从大到小排序,如果数学成绩一样则按姓名排序。const table = [
{ "name": "张三", "grade": 8, "subject": "语文", "score": 90 },
{ "name": "张三", "grade": 8, "subject": "数学", "score": 76 },
{ "name": "张三", "grade": 8, "subject": "英语", "score": 86 },
{ "name": "李四", "grade": 7, "subject": "语文", "score": 78 },
{ "name": "李四", "grade": 7, "subject": "数学", "score": 98 },
{ "name": "李四", "grade": 7, "subject": "英语", "score": 70 },
{ "name": "王五", "grade": 8, "subject": "语文", "score": 90 },
{ "name": "王五", "grade": 8, "subject": "数学", "score": 89
...
继续阅读
(35)