hildogjr / KiCost

Build cost spreadsheet for a KiCad project.
MIT License
494 stars 97 forks source link

Wrong BoM sorting for lines containing more than one component #490

Closed set-soft closed 3 years ago

set-soft commented 3 years ago

When a line contains more than one component the sorting is broken. I'm not talking about the lack of "natural" sorting, meaning that C10 goes after C2, but the sorting isn't even alphabetical.

As an example you can take a look at the current references here:

https://github.com/xesscorp/KiCost/blob/6ce5ac0c654a4b47c3998388e50a09ad7928751e/tests/expected_test/300-010.csv

In this example C4-C6,C8,C11-C15 is placed after C7 and D3-D6,D10,D11 after D9. This makes quite hard to find a component.