We now slice the array into a different number of slices. For this example we will use five slices, but other values are possible.
Slicing this into five we get:
Again we sort each column to give:
Logically reassembling, we now have the dataset:
Notice that the data set is starting to look much more sorted than it was before.
Next: Shell Sort 3