bubble sort to just sort