Access/VBA Library

Sort Method

Sort the array in alfabetic order.

Syntax

array_.Sort()
Parameters
Name Type Description
array_   The name of an object of type array_

See also

  • QuickSort
Example
  Dim x As New Array_

  x.FromArray(Array(97, 23, "Some element", 3, 34, "ABC")).Sort
  ' Result:
  'Array (
  ' [1] = > 3
  ' [2] = > 23
  ' [2] = > 34
  ' [2] = > 97
  ' [2] = > ABC
  ' [2] = > Some element
  ')