# AllSorted

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

## Definition

* **Type:** Field
* **Namespace:** [Unity.U2D.Physics](/engine/6000.7/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

```csharp
AllSorted = 2
```
