I don't remember comparing the sortChildren function performance to D3 order function, but it looks much more simple. The sortChildren function is used to raise an element, pointed by cursor, or group of elements, highlighted in legend, and also sort bars.
See #337 and #345.