ASP/VBS 数组快速排序方法:
Function fsArray(thisArray)
Dim oArrayList, iElement
Set oArrayList = CreateObject("System.Collections.ArrayList")
For iElement = 0 To UBound(thisArray)
oArrayList.Add CLng(thisArray(iElement))
Next
oArrayList.Sort
thisArray = oArrayList.toArray
str = join(thisArray, ",")
Response.write Str & "<BR>"
fsArray = thisArray
End Function
MyArray = Split("12,4,356,8943,23,123,34456,4223,2232,3454,78,13", ",")
For i=0 to ubound(MyArray)
Response.write MyArray(i) & ","
Next
Response.write "<BR>"
MyArray = fsArray(MyArray)
For i=0 to ubound(MyArray)
Response.write MyArray(i) & ","
Next
以上代码需要系统安装.net方可支持。