Adding more filters to sort schedules with Dynamo?

There’s a workaround described in this thread which concatenates a series of parameter values into a single parameter which can then be used to group and sort in Revit