Possible Duplicate:
Natural sort in C - “array of strings, containing numbers and letters”
When sorting strings in C with qsort and strcmp I have the problem that alphanumeric entries, typically strings ending with numbers, are being sorted oddly like this:
- Entry1
- Entry12
- Entry2
The desired behavior is this:
- Entry1
- Entry1_new
- Entry2
- Entry12
What is the easiest way to do this?
Thanks