bubble sort includes a block if given