If you, for example, have sorted by type, & you want to have it also sorted by name, you can hold "control" while klicking on the "name" column. This will set the secondary sort order (you can hold ctrl & make further sorting orders) to "name", but normally you should already have the names all sorted alphabetically within each type group. A small index number in the column heads will indicate the primary & secondary (& so on) sort orders, by the way.
If your name sorting order is random, this could be because of different sorting set in the folder options (in ->tools -> folder options).