Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This draws output ports from left to right, ordering them in descending order of sort_keys when provided. Input port are still sorted by ascending order of sort_keys. This should keep the order of output ports if the package author bothered to provide sort_keys, else it will change the order to match the declaration order. Hence it is surprising.
My test case is this: https://gist.github.com/remram44/f1a459fd3452cbc120d1
Highlighted connections are between port specs, not module ports.
master:
There is something strange going on in the ordering of port specs with the same sort_key. I didn't bother keeping compatibility there.
This PR:
Note that sort keys are backwards for both FixedOrder#_output_ports, and the sort_keys in ports.xml. This is for compatibility reasons.
This means that a PythonSource's output ports are still drawn from right to left, because sort_keys are assigned to them, in ascending order.
Fixes #980