# PhysicsSpace.CastResult.SortAscendingOrder

> Ascending distance sort comparer.

## Definition

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

```csharp
public readonly struct PhysicsSpace.CastResult.SortAscendingOrder : IComparer<PhysicsSpace.CastResult>, IEquatable<PhysicsSpace.CastResult.SortAscendingOrder>
```
