Please tell me whether it is possible to solve the problem:
there is a list of the categories (red frame - need sort list under text “Rhytm”) which you want to sort in order by the categories of the second list (green frame)?
for the first sublist this must be : {{Room, DetailCurve, 0915x1220 мм, 0915x1830мм, 0813х2134 мм, Wall} … }
Use “SortByFunction” node with “Element.GetCategory” as func.