Sorting a 2D Char Array in Alpha order?

Hi there, I am trying to sort a 2D array of names into alphabetical order, but I can not seam to get it to work.

I am using a bubble sort on the letters, and this is sorting the 1st letter of the names fine, but 3 of the names start with the same letter and they are still out of order.

I have tried googleing and stuff but every ting says to use vectors or string variables.. but I am limited to using 2d char arrays..

Any ideas?

here is the code I have at the moment that works nearly.
http://ideone.com/i9iVX
Topic archived. No new replies allowed.