# Vector2.Sort

```csharp
static void Sort(ref Vector2 min, ref Vector2 max)
```

Sort these two vectors into min and max. This doesn't just swap the vectors, it sorts each component.
So that min will come out containing the minimum x and y values.

### Parameters

- `ref min` (`Vector2`)
- `ref max` (`Vector2`)

Declared in [Vector2](/api/Vector2).
Assembly: `Sandbox.System`.
