See http://en.wikipedia.org/wiki/Quick_sort.
The C standard library has a qsort which can be used in conjunction with strcmp for this.
See http://en.wikipedia.org/wiki/Quick_sort.
The C standard library has a qsort which can be used in conjunction with strcmp for this.