When paths are winded, they need to be sorted into a trees to calculate which paths are "inside" other paths. The sorting code was previously relying on the outer paths being added to the tree first, the algorithm now checks if the new node should be swapped with an existing node.
This PR fixes a bug within the autowinding of subpaths for SFSymbols that I believe has always existed but was amplified by https://github.com/swhitty/SwiftDraw/pull/33.
When paths are winded, they need to be sorted into a trees to calculate which paths are "inside" other paths. The sorting code was previously relying on the outer paths being added to the tree first, the algorithm now checks if the new node should be swapped with an existing node.
Resolves #32