Sort the strings

in the "solving a string challenge "video while making strtok in extractstringatkey function() in the while loop why have we done key–; at the end?