My bad, I understood completely the other way around the workflow, I leave you a way to make query’s based on the Tag for blocks in autocad, you can also specify the whit a string the Tag (Name) of the attribute to get in the desire order the information, I hope this help you!!
Also check this post is very similar