rewrite SortedCollection to use topological sorting
fix converter resolution by making topological sort stable
Merge pull request #11 from topicusonderwijs/master

Rewrite of SortedCollection to use a Topological sorting