# AllSorted

> Return all the hits but also sort by ascending distance (closest first).

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
AllSorted = 2
```
