Sorting finished!

Bubble sort is completed with the addition of sorting flags.