hey guys, can anyone please show me how to insertion sort an array of strings.

Conceptually sorting an array of strings is no different from sorting an array of integers.
There is one main difference. When we are comparing 2 integers, say a and b, it is quite easy to say a is greater than / lesser than / equal to b. If you are sorting arrays of strings you have to write your own compare function which can tell if the string a is greater than / equal to / less than string b

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.