assign sorting to true on every sort
tests for bubble sort