nction</span> (<span class="hljs-params"></span>) </span>{
    (&lt;c3.Polar.Layer.Pie&lt;<span class="hljs-built_in">any</span>&gt;&gt;pie_chart.layers[<span class="hljs-number">0</span>]).sort = <span class="hljs-built_in">this</span>.checked;
    pie_chart.redraw();
    (&lt;c3.Polar.Layer.Pie&lt;<span class="hljs-built_in">any</span>&gt;&gt;half_moon_chart.layers[<span class="hljs-number">0</span>]).sort = <span class="hljs-built_in">this</span>.checked;
    half_moon_chart.redraw();
});</pre></div></di