A bubble sort is used to sort the following list of numbers in ascending order:
| 8 | 3 | 5 | 1 | 9 | 2 | 7 |
State the condition that determines when the bubble sort algorithm has completed and can stop.