Transparent instancedMesh rendering bug with different positions

Similar issue has already been discussed in: Is it possible to set varying opacity for objects inside a InstancedMesh (filled with BoxBufferGeometry + MeshPongMaterial cubes).

Unfortunately, this kind of transparency issue is hard to tackle. Setting depthWrite: false is right but you have to sort instances per frame based on their distance to the camera to improve results.