Sorts an array of numbers.
Rhino.SortNumbers (arrNumbers [, blnAscending])
arrNumbers |
Required. Array. An array of numeric values. |
blnAscending |
Optional. Boolean. The sorting mode, either ascending or descending. If omitted, the numbers are sorted ascending. |
Array |
An array of sorted numbers if successful. |
Null |
If not successful, or on error. |
Dim arr, n
arr = Array(1,4,6,1,4,8,4,9,4,5)
arr = Rhino.SortNumbers(arr, True)
For Each n In arr
Rhino.Print n
Next