odd-even sort added