# ParticleSystemSortMode

> The sorting mode for particle systems.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.ParticleSystemModule

```csharp
public enum ParticleSystemSortMode
```

## Fields

| Value                                                                                                    | Description                                                                                                                 |
| -------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| [Depth](/engine/6000.0/script-reference/unityengine/particlesystemsortmode/depth.md)                     | Sort based on depth from the camera plane.                                                                                  |
| [DepthReverse](/engine/6000.0/script-reference/unityengine/particlesystemsortmode/depthreverse.md)       | Sort based on reverse depth from the camera plane.                                                                          |
| [Distance](/engine/6000.0/script-reference/unityengine/particlesystemsortmode/distance.md)               | Sort based on distance to the camera position. For orthographic cameras, this mode is the same as sorting by depth.         |
| [DistanceReverse](/engine/6000.0/script-reference/unityengine/particlesystemsortmode/distancereverse.md) | Sort based on reverse distance to the camera position. For orthographic cameras, this mode is the same as sorting by depth. |
| [None](/engine/6000.0/script-reference/unityengine/particlesystemsortmode/none.md)                       | No sorting.                                                                                                                 |
| [OldestInFront](/engine/6000.0/script-reference/unityengine/particlesystemsortmode/oldestinfront.md)     | Sort the oldest particles to the front.                                                                                     |
| [YoungestInFront](/engine/6000.0/script-reference/unityengine/particlesystemsortmode/youngestinfront.md) | Sort the youngest particles to the front.                                                                                   |
