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

Parameters

arrShort

Views 140 Downloads 59

Perm link