I'm having some trouble using the dom sorting in Safari, it basically does not move the dom items. The ordering works in Chrome and Firefox, my only issue is on Safari. This is the code i am using:
var hovered = d3.select(this)[0][0]['__data__']['properties']['name'];
g.selectAll("path").sort(function(a, b) {
return (a.properties.name == hovered ? 1 : 0);;
});
I am using this because later in the code i am doing some scaling on the hovered path, and if its not last in the dom tree it appears behind the paths that are after it.
Any help on the matter would be great.