sortArray

Sort an array of Numeric values, simple straightforward
Originally from http://www.mykeblack.com/scripts/asp/arrays/sort-array-quick-method

function sortArray(arrShort)
 for i = UBound(arrShort) - 1 To 0 Step -1
  for j= 0 to i
   if arrShort(j)>arrShort(j+1) then
    temp=arrShort(j+1)
    arrShort(j+1)=arrShort(j)
    arrShort(j)=temp
   end if
  next
 next
 sortArray = arrShort
end function

arrShort

Views 439 Downloads 152

'Sort', 'Arr', 'Array', 'NotMyWork'

ANmarAmdeen
324
Components Classic ASP
Revisions

v2.0