From acad attributes to revit. List sort troubles

Hello, I’m a dynamo beginer having trouble with list oranization.
On a side i have attributes from acad blocks i want to export in specific rooms in Revit.
I extracted datas from acad to an excel file with attributes and point insertion coordinates.
Then i tested the points in rooms with the roomisinsidroom function and i apllied mask to remove all the false values. So far everything works perfectly! I have 55 points and know exactely in which room they belong! Now i want to sort the attributes list in exactely the same way in order to trans! fer values to the rooms… I tried severals function and methods like sortbykey (this the function i use in this case in grasshopper) but nothing works… Any idea?