Advantages and Disadvantages of Bubble Sorting?
Advantages:
Easy to understand.Easy to implement.In-place, no external memory is needed.Performs greatly when the array is almost sorted.
Disadvantages
Very expensive, O(n2) in worst case and average case.It does more element assignments than its counterpart, insertion sort.
https://www.c-sharpcorner.com/article/c-sharp-bubble-sort-algorithm/