Update bids/modeling/statsmodels.py
re-sort the un-sorting
@@ -309,7 +309,7 @@ class BIDSStatsModelsNode:
records.append(base_ents)
for rec in records:
- grp_key = tuple(rec)
+ grp_key = tuple(sorted(rec))
groups[grp_key].append(objects[i])
return groups
