Bubble sort example if java. Not sure if it works.