minor fix in a python script (kicad_netlist_reader.py) Sort lists was incorrectly made.

This commit is contained in:
jean-pierre charras 2019-11-02 09:27:50 +01:00
parent 37f23fa537
commit 26d0863921
1 changed files with 3 additions and 2 deletions

View File

@ -672,10 +672,11 @@ class netlist():
for t in re.split( '(\d+)', str ) ]
for g in groups:
g = sorted(g, key=lambda g: sortKey(g.getRef()))
#g = sorted(g, key=lambda g: sortKey(g.getRef()))
g.sort(key=lambda g: sortKey(g.getRef()))
# Finally, sort the groups to order the references alphabetically
groups = sorted(groups, key=lambda group: sortKey(group[0].getRef()))
groups.sort(key=lambda group: sortKey(group[0].getRef()))
return groups