Numbering rebar marks & finding duplicates

I am working out how to combine length parameters a b and c in one sorting progress.

Just sort by “Total Bar Length” parameter as in my script?

My ‘barcode’ approach (as i call it) would also work.

Nope. When i model L-shapes (shape 11) in revit it sometimes switches the A and B length parameter. which on first sight shouldnt be a problem for the dynamo. but my schedule will mention “Varies” in the columns because A and B somehow switched. It happened in one of my models when i used it. Live laugh love Revit

Barcode approach will indeed help combining the sorting process.