OptionalsortableIf true, the layer's children will be sorted by zIndex before rendering. If false, you can manually sort the children using sortRenderLayerChildren when needed.
const layer = new RenderLayer({
    sortableChildren: true // Automatically sorts children by zIndex
});
OptionalsortCustom sort function to sort layer children. Default sorts by zIndex.
const layer = new RenderLayer({
    sortFunction: (a, b) => {
        // Sort by y position
        return a.position.y - b.position.y;
    }
});
Options for configuring a RenderLayer. A RenderLayer allows control over rendering order independent of the scene graph hierarchy.
Example