Sorting list of Transforms

i have a list with Cubes (Transforms), i need to sort it alphabetical (numerous)

The Cubes have Names from 1 to … :
1
2
3
4

i have the following code, but that wont work:

list.OrderBy(wp => wp.name);

what’s the problem? whats wrong with this?

i’ve sorted it now with a different method:

foreach (Transform item in waypointsListe)
        {
            if (item != null && item.name != "Waypoints")
            {
                waypointsListeFinal[int.Parse(item.name.ToString())] = item;
            }
            else if (item != null && item.name == "Waypoints")
            {
                waypointsListeFinal[0] = item;
            }
        }

i’ve just wrote it in a second array with the id’s, works like i wanted it