How to change partcile system's order in layer through script?

I just need to change “Order In Layer” property of particle system. I can simply do it in Unity inspector, but I need to change it through script. I tried, but I did not find appropriate property of particle system’s renderer.

Make sure you use ParticleSystemRenderer, from there, it’s simple:

psr.sortingOrder = valueOfMySortingOrder;

Hope it helps.