Write a function to find the specified index values in the array:
Test sort () function inside each of the following:
Browser, operating results:
Easy to see, () inside the sort function by direct insertion sort.