# REVERSE

### Description

Reverses the entries. So if applying on ascending ordered data, you would get a descending ordered data set.

### REVERSE(Scalar\<any>)

```java
REVERSE(scalar: Scalar<any>): Scalar<any>
```

Reverse the order of the given Scalar\<any>

#### Parameters

<table><thead><tr><th width="172">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>scalar</td><td>A scalar of type any</td></tr></tbody></table>

#### Returns

Returns the given scalar in reversed order with type Scalar\<any>

### REVERSE(Vector\<any>)

```java
REVERSE(vector: Vector<any>): Vector<any>
```

Reverse the order of the elements in the given Vector\<any>

#### Parameters

<table><thead><tr><th width="172">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>vector</td><td>A vector of type any</td></tr></tbody></table>

#### Returns

Returns the given vector in reversed order with type Vector\<any>

***

### REVERSE(GroupedScalar\<any, any>)

```java
REVERSE(group: GroupedScalar<any,any>): GroupedScalar<any,any>
```

Reverse the order of the elements in the given GroupedScalar\<any, any>

#### Parameters

<table><thead><tr><th width="172">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>group</td><td>A GroupedScalar of type &#x3C;any, any></td></tr></tbody></table>

#### Returns

Returns the given group in reversed order with type GroupedScalar\<any, any>.

***

### REVERSE(GroupedVector\<any, any>)

```java
REVERSE(group: GroupedVector<any,any>): GroupedVector<any,any>
```

Reverse the order of the elements in the given GroupedVector\<any, any>

#### Parameters

<table><thead><tr><th width="172">Parameter</th><th>Description</th></tr></thead><tbody><tr><td>group</td><td>A GroupedVector of type &#x3C;any, any></td></tr></tbody></table>

#### Returns

Returns the given group in reversed order with type GroupedVector\<any, any>.

### Examples

Reverse the elements in the GridPowerConsumption Vector.

```java
REVERSE($GridPowerConsumption)
```
