There is a code that searches for some objects by tag.

public List<GameObject> Targets; Targets = GameObject.FindGameObjectsWithTag("Point").ToList(); 

Objects other than coordinates differ by name (Point 1, Point 2, etc.)

After this operation I have a collection

Point 5, Point 4, Point 3 .. - Descending. Although the objects were created in duplicate.

In this regard, a couple of questions:

  1. How to properly sort this collection
  2. What is the reason for filling this collection.

    1 answer 1

    figured out:

     Targets = Targets.OrderBy(x => x.name).ToList(); 

    Before that I tried to sort the list, but did not assign it anywhere

    • Sheet has built-in sorting (via delegate or interface) - Xumera_hZ