Sorting sub groups by two parameters

Hi,

I have a list of family instances I’ve split into to sub lists based on a text parameter I’ve built into them. I’d like to now sort each sub list firstly by level then by x coordinate then by y coordinate. I’ve managed to extract all the information but am struggling with the sort by and group by functions. Any help would be much appreciated!

Thanks in advance,

Kieran

list sort query 1

Try searching the forum for similar posts. There are quite a few that deal with grouping and sorting multiple parameters.

The main idea is that you need to sort and group by the first parameter. Then sort and group those sublists by the second parameter. Then sort and group the sublists of the sublists by the third parameter. Then you can flatten everything into your original list structure.

Lacing and list levels will matter here.

You may also want to round the X/Y values to a small number (IE: 0.00001) instead of leaving them native - accuracy can be greater than desired in some cases.

1 Like