sortShaderPassStack(passStack) {
        passStack.sort((a, b) => a.index - b.index);
        passStack.sort((a, b) => a.renderOrder - b.renderOrder);
    }
Sorts the shader pass stack by index then by renderOrder property

     params:
     @passStack (array): which shader pass stack (scenePasses or renderPasses) to sort
*