better bubble sorting algorithm that preserves order - case: Final Standing