Add mark to structural foundation and automatically tag

It doesn’t work because you connected to List.Flatten amt Input the list of points, instead of connecting them to Key input of SortByKeys.