Bubble sort swing