I would have stated exactly the same as @eomega5DEMF
Also that if you are sorting by multiple categories and there are differences in values it will create a individual reference so if you are sorting by quantity and Bar Length this could also influence the output as you are calling out different information, for example if you do have different quantities and use the method as @eomega5DEMF mentioned you would get <varies> where differences occur so as you do not have these there is another level of sorting going on

With quantity now included its add multiple references as you see

Jay Colcombe
Autodesk Certified Instructor
Revit Architecture & Structure Certified Professional
AutoCAD Certified Professional
B.Sc. Hons Civil & Structural Engineering
If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.