Skip to content

Commit

Permalink
Get rid of sorting attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
kasbah committed Jul 23, 2017
1 parent 759bfb6 commit f01288f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions skidl/skidl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3867,12 +3867,6 @@ def generate_graph(self, file=None, engine='neato', rankdir='LR',
# try and keep things in the same order
nets.sort(key=lambda n: n.name.lower())

# try and keep gnds at start so they appear at bottom with 'neato' engine
r = re.compile('gnd', re.IGNORECASE)
gnds = [n for n in nets if r.match(n.name) is not None]
nets = [n for n in nets if r.match(n.name) is None]
nets = gnds + nets

for n in nets:
xlabel = n.name
if not show_anon and n._is_implicit():
Expand Down

0 comments on commit f01288f

Please sign in to comment.