Bubble sort is a simple sorting algorithm. It is very simple for understanding and realization therefore it is considered as a training algorithm. In real applications it is not used since it is not efficient.