I am a novice programmer, what do I need to do to avoid mistakes?
Operand> cannot be applied to type string and string
for (int write = 0; write < arr.Length; write++) { for (int sort = 0; sort < arr.Length - 1; sort++) { if (arr[sort] > arr[sort + 1]) { temp = arr[sort + 1]; arr[sort + 1] = arr[sort]; arr[sort] = temp;
arr[sort] > arr[sort + 1]? Do you compare strings? or string length? - Tivyram