欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp數(shù)字或者字符排序函數(shù)代碼

 更新時(shí)間:2011年01月28日 12:33:30   作者:  
asp排序沒(méi)有系統(tǒng)函數(shù)直接支持,而我們經(jīng)常需要使用的數(shù)字排序和字符排序、按拼音排序都離不開(kāi)排序。
復(fù)制代碼 代碼如下:

'排序
Function Sort1(ary)
Dim KeepChecking,I,FirstValue,SecondValue
KeepChecking = TRUE
Do Until KeepChecking = FALSE
KeepChecking = FALSE
For I = 0 to UBound(ary)
If I = UBound(ary) Then Exit For
If ary(I) > ary(I+1) Then
FirstValue = ary(I)
SecondValue = ary(I+1)
ary(I) = SecondValue
ary(I+1) = FirstValue
KeepChecking = TRUE
End If
Next
Loop
Sort1 = ary
End Function

Dim arr
arr = Array("a","c","b")
arr = Sort1(arr)
For i=0 to ubound(arr)
Response.Write(arr(i)&"<br />")
Next

相關(guān)文章

最新評(píng)論