Sort Element sublist w.r.t. specific category type

Hello Everybody,

I scrolled through a lot of posts which mentions sorting elements with respect to category but couldn’t find exactly what i’m looking for except this post: Sort list by unique category. So i tried to mimic it and i feel i’m pretty close but not there yet!

I have many assemblies with elements which i wish to categorize/sort with respect to their category types. In my case i want to group categories Pipes, Flex Pipes, Pipe Fittings, Pipe Accessories and Specialty Equipment in the given order. This is where i’ve reached so far but at the end the result is not what i expected it to be. Kindly Help!

List.GroupByKey should work using Category and elements nodes.

1 Like