Sorting a 2d array of characters in which every row represents a string and is terminated by null character

i know how to sort an array of strings string array[] by using the sort function.
but how to do this with a 2D char aray.
can the sort function work on that?
how to give the iterators in that for this case?