Bubble sort is a simple sorting algorithm that iterates several times on the array, compares adjacent elements and replaces them when they are in the wrong order. It has this name because the individual iterations are smaller elements which "bubble" to the top of the list.

This is how the algorithm works:

- Start from the beginning of the list.

- Compare the first two elements.

- If the first element is bigger than the second, replace them.

- Move to the next pair of elements (2 and 3), compare them and replace them if necessary.

- Continue comparing and replacing adjacent elements until the end of the list.

- Now the biggest element is at the end of the list.

- Repeat the process for all elements, except for the last.

Repeat these steps until the full list is sorted.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence