This is my first insertion array, but it does not sort probably and I'm not sure where I went wrong. Any ideas?
for (int i=1; i<array.length; i++) {
int temp = array[i];
for (int j=i-1; j >=0 && temp < array[j]; j--) {
array[j+1] = array[j];
array[j+1] = temp;
}
ItsATextArea.append(array[i] + "\n");
}