X475: Sorting - Insertion Sort

Finish the code to complete the insertion sort method. Each comment denoted with //_________________ is a single line that needs to be filled out.

Examples:

insertionSort({2, 0, 3, 4, 8, 10, 1}) -> {0, 1, 2, 3, 4, 8, 10}

Your Answer:

Feedback

Your feedback will appear here when you check your answer.