Sorts the array. The array elements must have the same type.
The Mode argument is a combination of the following constants :