Group list by key does not work

Hello there. Can’t get why group by key does not work on grouped list.

As you can see I wan’t to group apartments by building number (there is 6 small buildings in a project), so how can I do this?

Currently you are asking Dynamo to “Please group (or sort) this list of a list of items by this list of a list of keys.” Unfortunately lists themselves aren’t really comparable, so there is no way to group things by them. What you want is to group the list of items in each list by the list of keys in each group.

Try this:
Enable levels for both the list and the keys.
It looks like it should be level two and keep structure for the list and just level 2 for the keys (but I can’t see enough data to know).