Bubble sort

  1. Pressing the "New data" button will create a set of 10 random numbers (min value is  1 and max is 50.

  2. "Start sorting" button will start animated compare-and-swap process. It may take several minutes.

    Reordered set will appear in a separate field for user convenience if there will be difficulties with selection of animated objects.

If "New data" button is pressed in the process, sorting will be stopped. Old data will be lost and replaced with newly generated array.