Sort pipes by two parameters

Hello,

I wish to create a numbering parameter for ducts based on their diameter. However, there seems to be a sorting issue based on the diameter. I would like to number them based on two parameters. From the image, you can see the parameters I aim to set. How can I accomplish this? Could someone please assist me?

are the parameters builtin parameters of Revit? is what language are the parameter names? can you translate to english?

Yes, these are built-in parameters for Revit. The parameters are in Romanian. I wish to merge the ‘diameter’ and ‘duct model’ parameters. Based on these two, I aim to create another parameter for numbering. Thanks!

There are tons of topics already addressing how to sort/group elements by multiple parameters. Please start there and only start a new topic if you have a specific issue that you’d like to address.