> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_OrderingEquals

Returns true if the geometries are equal and the coordinates are in the same order

<img src="https://mintcdn.com/wherobots/wLm_IRUSNlHZTHJP/images/sql-functions/ST_OrderingEquals/ST_OrderingEquals_true.svg?fit=max&auto=format&n=wLm_IRUSNlHZTHJP&q=85&s=e80ed8ef51bb69ceff6fd60c3f9634e4" alt="ST_OrderingEquals returning true" width="400" height="300" data-path="images/sql-functions/ST_OrderingEquals/ST_OrderingEquals_true.svg" />

<img src="https://mintcdn.com/wherobots/wLm_IRUSNlHZTHJP/images/sql-functions/ST_OrderingEquals/ST_OrderingEquals_false.svg?fit=max&auto=format&n=wLm_IRUSNlHZTHJP&q=85&s=73b95e5659d2c70393c263fa1411f893" alt="ST_OrderingEquals returning false" width="400" height="300" data-path="images/sql-functions/ST_OrderingEquals/ST_OrderingEquals_false.svg" />

## Signatures

```sql theme={"system"}
ST_OrderingEquals(A: geometry, B: geometry)
```

## Parameters

<ParamField body="A" type="Geometry" required>
  The input geometry.
</ParamField>

<ParamField body="B" type="Geometry" required>
  The second geometry.
</ParamField>

## Return type

<ResponseField type="Boolean">
  Returns `true` or `false`.
</ResponseField>

## Examples

```sql theme={"system"}
SELECT ST_OrderingEquals(ST_GeomFromWKT('POLYGON((2 0, 0 2, -2 0, 2 0))'), ST_GeomFromWKT('POLYGON((2 0, 0 2, -2 0, 2 0))'))
```

```
true
```

```sql theme={"system"}
SELECT ST_OrderingEquals(ST_GeomFromWKT('POLYGON((2 0, 0 2, -2 0, 2 0))'), ST_GeomFromWKT('POLYGON((0 2, -2 0, 2 0, 0 2))'))
```

```
false
```
