Please tell me how to sort 2D string array according to the alphabetical order.
eg:
cat
rat
dog
ram
Answer must be:
cat
dog
ram
rat
please notice that i know how to sort a integer array. but i have no idea of sorting string array,please help me
Please tell me how to sort 2D string array according to the alphabetical order.
eg:
cat
rat
dog
ram
Answer must be:
cat
dog
ram
rat
please notice that i know how to sort a integer array. but i have no idea of sorting string array,please help me