insertion sort attempted but likely to be inefficient for volumes of data handled by the app at this point. Instead deploying the native array.sort method