I'm trying to use insertion sort to sort a list by names and it's obviously not working. I used the same code to sort by ID numbers so I'm not sure why it's not working.
void sortByNameInsert(Students info[], int i, string key, Students key2[])
{
int j;
j = i-1;