What a coincidence, I ran into the exact same problem last week. I have also written a macro to sort the parts list, and also with me the sorting results were partly not correct. However, for me it was not dependent on the number of lines in the BOM, but on the type of BOM used. With the type "...