I store a string of both letters and numbers in the array.
Eg. ABC123, XYZ456.
However i want to sort by the numerical part only.
How can i do that? I try using isdigit() but i doesn't work.
Code:void selectionSort(int arr[]) { int i, start, min, temp; for (start = 0; start < 10 -1; start++) { min = start; for (i = start+1; i < 10; i++) if (isdigit (arr[i]) < isdigit (arr[min]) ) min = i; temp = arr[start]; arr[start] = arr[min]; arr[min] = temp; } }