Array.sort() using insertion sort.