Moves the given array element above another one in the array. The array is modified in-place.
name | type | description |
---|---|---|
array | array |
The input array. |
item1 | * |
The element to move above base element. |
item2 | * |
The base element. |
The input array.