fixed insertion sort for native arrays