Yes, the bubble sort could work with character strings, to sort names in C.
I will suggest you to go through the below link in stackoverflow. I hope
it will help you out
Any sorting algorithm can work with anything that can be compared so bubble sort can be used to sort numbers or strings or just blocks of 5 bytes of memory.