Advanced Sorting and Grouping in Dynamo

This tutorial shows how to use advanced list sorting and grouping techniques in Dynamo to renumber pipes in a Revit MEP file.
Source