1. let dataList =[{"showOrder":"2","name":"李四","age":"18"},{"showOrder":"4","name":"马六","age":"30"},{"showOrder":"3","name":"王五","age":"24"},{"showOrder":"1","name":"张三","age":"15"}]
    2. dataList.sort(this.compare)
    3. compare(obj1, obj2) {
    4. let val1 = obj1.showOrder;
    5. let val2 = obj2.showOrder;
    6. if(val1 < val2) {
    7. return -1;
    8. }elseif(val1 > val2) {
    9. return 1;
    10. }else {
    11. return 0;
    12. }
    13. },