Create rooms and room names from Cad files with Bimorph node

Hi Dynamo Community,

I would like to pick your brain on this sorting issue that I have been trying to solve. I hope I can clearly explain the issue I have. Please feel free to leave comments if you have a trouble understanding my question. I have a Cad file with existing floor plan. I was able to successfully create rooms based on the cadfiles with room names thanks to “Bimorph nodes” plugin. Now, I’m trying to extract the room numbers from the Cad file and feed them into the same “Room.by.location” node that I used to create rooms. The problem is that when the nodes extracts the room names and numbers, the list orders from room name and room number do not match up (wonder if they are listed in a random pattern?). As a result, the package creates rooms in a correct location with correct room names, but with “WRONG” room names. What would be the best way to sort them in a matching list order so that I can feed the room names to the right room element? Thank you for your help and time in advance!!