Sort Repeating Group by number of items in List Field

Hello, I have a Repeating Group the searches for a specific lists of Variables1

These Variables have a field that is a list of items.

I would like to sort the Repeating Group by the number of items in each list of each variables.

How can I do it without adding a new field that does the counting?

Thank you