Sorting 2D array of chars C++
- by user69514
I have a 2d array of chars where in each row I store a name... such as this:
J O H N
P E T E R
S T E P H E N
A R N O L D
J A C K
How should I go about sorting the array so that I end up with
A R N O L D
J A C K
J O H N
P E T E R
S T E P H E N
These is a 2d array of chars..... no strings or char points.....