TS,数组的sort排序
let union: any = []; union.push(1) union.push(21) union.push(3) union.push(7) /// 从小到大的排序 union.sort(function (A, B) { return A - B; });