# PhysicsQuery.CastResult.SortAscendingOrder

> Ascending distance sort comparer.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.5/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule
* **Implements:** [IComparer\<CastResult>](https://learn.microsoft.com/dotnet/api/system.collections.generic.icomparer-1)

```csharp
public readonly struct PhysicsQuery.CastResult.SortAscendingOrder : IComparer<PhysicsQuery.CastResult>
```
