sure they're in random order at the beginninginner and outer point to the second bar from the left (array index )and the first message is will copy outer to temp this will make room for the shift (there' no arrow for inner- but of course it' always one bar to the left of inner click the step button the bar at outer will be copied to temp copy means that there are now two bars with the same height and color shown on the graph this is slightly misleadingbecause in real java program there are actually two references pointing to the same objectnot two identical objects howevershowing two identical bars is meant to convey the idea of copying the reference figure the insertsort workshop applet with bars what happens next depends on whether the first two bars are already in order (smaller on the leftif they areyou'll see have compared inner- and tempno copy necessary if the first two bars are not in orderthe message is have compared inner- and tempwill copy inner- to inner this is the shift that' necessary to make room for the value in temp to be reinserted there' only one such shift on this first passmore shifts will be necessary on subsequent passes the situation is shown in figure on the next clickyou'll see the copy take place from inner- to inner alsothe inner arrow moves one space left the new message is now inner is so no copy necessary the shifting process is complete no matter which of the first two bars was shorterthe next click will show you will copy temp to inner this will happenbut if the first two bars were initially in orderyou won' be able to tell copy was performedbecause temp and inner hold the same bar copying data over the top of the same data may seem inefficientbut the algorithm runs faster if it doesn' check for this possibilitywhich happens comparatively infrequently now the first two bars are partially sorted (sorted with respect to each other)and the outer arrow moves one space rightto the third bar (index the process repeatswith the will copy outer to temp message on this pass through the sorted datathere may be no shiftsone shiftor two shiftsdepending on where the third bar fits among the first two continue to single-step the sorting process againit' easier to see what' happening after the process has run long enough to provide some sorted bars on the left then you can see how just enough shifts take place to make room for the reinsertion of the bar