Nearest text to a block

Greetings,
I would like to get the nearest text to the block base point as shown in the pic.

What have you tried so far?

Some outline steps:

  1. Get the location of all the text notes.
  2. Get the location of the block.
  3. Getometry.DistanceTo to tie the two together.
  4. List.SortByKey to sort the text by the distance from the block.