asp中,可以使用数组的 sort 方法对数组进行大小排序。对于数字数组 arr,使用 arr.sort((a, b) =˃ a b) 可以从小到大排序;使用 arr.sort((a, b) =˃ b a) 可以从大到小排序。