Sublist by Prefix/Suffix

I have a list of numbers with a suffix used to count the instances of items. I would like to create sub-lists with the items grouped together and have them sorted by suffix.

Below is a screen shot of a list of arbitrary numbers I created for example. Basically, I need to know how to start with the list on the right and end up with the list on the left.

Tried a number of different ideas, working from both sides of the dash/hyphen, but can’t seem to make any meaningful progress. My preference would be to keep solutions to Out-of-the-Box nodes or DesignScript if possible.

Any help is appreciated.

Hi
by using the grouping and sorting like this

1 Like

It makes so much sense when you see it done well. Thanks for your time!